8190617: test/jdk/sun/tools/jhsdb/BasicLauncherTest.java fails
authorcoleenp
Fri, 03 Nov 2017 07:44:13 -0400
changeset 47775 ab33aa41d7a4
parent 47774 69c081ca110a
child 47776 52e85a3fa0ab
8190617: test/jdk/sun/tools/jhsdb/BasicLauncherTest.java fails Summary: change type expected by SA for PerfMemory::_initialize to int. Reviewed-by: dholmes, sspitsyn
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/PerfMemory.java
--- 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() {