8164319: CLHSDB dumpcodecache throws StackOverflowError
authorysuenaga
Fri, 19 Aug 2016 01:20:39 -0400
changeset 40629 514bf0744294
parent 40628 0912b2911fe3
child 40630 661bccd1031a
child 40631 ed82623d7831
8164319: CLHSDB dumpcodecache throws StackOverflowError Reviewed-by: dholmes, dsamersoff
hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/code/CodeBlob.java
--- a/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/code/CodeBlob.java	Thu Aug 18 21:37:26 2016 -0400
+++ b/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/code/CodeBlob.java	Fri Aug 19 01:20:39 2016 -0400
@@ -32,6 +32,7 @@
 import sun.jvm.hotspot.types.Type;
 import sun.jvm.hotspot.types.TypeDataBase;
 import sun.jvm.hotspot.utilities.Assert;
+import sun.jvm.hotspot.utilities.CStringUtilities;
 
 import java.io.PrintStream;
 import java.util.Observable;
@@ -115,7 +116,7 @@
   }
 
   public String getName() {
-    return getName();
+    return CStringUtilities.getString(nameField.getValue(addr));
   }
 
   /** OopMap for frame; can return null if none available */