changeset 47677:ab33aa41d7a4

8190617: test/jdk/sun/tools/jhsdb/BasicLauncherTest.java fails Summary: change type expected by SA for PerfMemory::_initialize to int. Reviewed-by: dholmes, sspitsyn
author coleenp
date Fri, 03 Nov 2017 07:44:13 -0400
parents 69c081ca110a
children 52e85a3fa0ab
files src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/PerfMemory.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/PerfMemory.java	Thu Nov 02 11:00:34 2017 -0500
+++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/PerfMemory.java	Fri Nov 03 07:44:13 2017 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -35,7 +35,7 @@
     private static AddressField  topField;
     private static CIntegerField capacityField;
     private static AddressField  prologueField;
-    private static JIntField     initializedField;
+    private static CIntegerField initializedField;
 
     static {
         VM.registerVMInitializedObserver(new Observer() {
@@ -52,7 +52,7 @@
         topField = type.getAddressField("_top");
         capacityField = type.getCIntegerField("_capacity");
         prologueField = type.getAddressField("_prologue");
-        initializedField = type.getJIntField("_initialized");
+        initializedField = type.getCIntegerField("_initialized");
     }
 
     // Accessors
@@ -73,7 +73,7 @@
     }
 
     public static boolean initialized() {
-        return ((int) initializedField.getValue()) != 0;
+        return (initializedField.getValue()) != 0;
     }
 
     public static PerfDataPrologue prologue() {