8164319: CLHSDB dumpcodecache throws StackOverflowError
Reviewed-by: dholmes, dsamersoff
--- 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 */