8144965: Show oop pointer in call frame at HSDB.
authorysuenaga
Wed, 09 Dec 2015 23:17:21 +0900
changeset 35044 b4013c3f6807
parent 35043 30543d2a0a20
child 35045 d7725e7f76b1
8144965: Show oop pointer in call frame at HSDB. Reviewed-by: jbachorik
hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java
--- a/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java	Tue Nov 24 15:56:40 2015 -0800
+++ b/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java	Wed Dec 09 23:17:21 2015 +0900
@@ -1921,6 +1921,15 @@
             buf.link(genPCHref(addressToLong(pc)), pc.toString());
          }
 
+         if (!method.isStatic() && !method.isNative()) {
+            OopHandle oopHandle = vf.getLocals().oopHandleAt(0);
+
+            if (oopHandle != null) {
+               buf.append(", oop = ");
+               buf.append(oopHandle.toString());
+            }
+         }
+
          if (vf.isCompiledFrame()) {
             buf.append(" (Compiled");
          }