changeset 11830:af4f7418af3e

8164319: CLHSDB dumpcodecache throws StackOverflowError Reviewed-by: dholmes, dsamersoff
author ysuenaga
date Fri, 19 Aug 2016 01:20:39 -0400
parents 6c29c7f73ca1
children b2c07de32ca7 1cbffa2beba6
files src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/code/CodeBlob.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/code/CodeBlob.java	Thu Aug 18 21:37:26 2016 -0400
+++ b/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 */