JDK-6580131 : CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2007-07-12
  • Updated: 2017-05-16
  • Resolved: 2010-02-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u21Fixed 7Fixed OpenJDK6,hs17Fixed
Related Reports
Relates :  
Description
The spec for JVMTI says or implies that CompiledMethodLoad should generate extra events to describe the inlining in a piece of compiled code.  Currently we don't do this which really limits the amount of information available for methods with heavy inlining.  We should probably be producing the extra events, assuming that existing tools don't barf when they get them.

Comments
EVALUATION ChangeSet=http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/7fbf850d87b7,ChangeRequest=6580131
28-01-2010

EVALUATION ChangeSet=http://hg.openjdk.java.net/jdk7/tl/jdk/rev/b19cd193245e,ChangeRequest=6580131
20-01-2010

EVALUATION ChangeSet=http://hg.openjdk.java.net/jdk6/jdk6/jdk/rev/6073840fbd22,ChangeRequest=6580131
20-01-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/7fbf850d87b7
20-01-2010

EVALUATION http://hg.openjdk.java.net/jdk6/jdk6/hotspot/rev/7fbf850d87b7
20-01-2010

SUGGESTED FIX See the attached 6580131-webrev-cr0.tgz file for the proposed fix. This is the OpenJDK6 version of the fix.
08-01-2010

EVALUATION The folks at AMD Labs have been kind enough to provide an extension to the JVM/TI CompileMethodLoad event in order to provide additional information about in-lining. This extension uses the existing (but previously unused) compile_info paramter: http://java.sun.com/javase/6/docs/platform/jvmti/jvmti.html#CompiledMethodLoad Vasanth and company provided the HotSpot code changes and the original demo program. I'm listed as the RE for this bug, but I just did the Makefile changes to export the new jvmticmlr.h file in the HotSpot repo and the integration of the demo program into JAVA_HOME/demo/jvmti in the JDK repo. I'm also handling the CCC request for getting the jvmticmlr.h file added.
08-01-2010