Request for reviews (M): 6580131: Exposing Method Inlining Information To JVMTI Agents
Vladimir Kozlov
Vladimir.Kozlov at Sun.COM
Tue Jul 28 16:14:33 PDT 2009
http://cr.openjdk.java.net/~kvn/6580131/webrev.00
Fixed 6580131: CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
and
https://bugs.openjdk.java.net/show_bug.cgi?id=100085 Exposing Method Inlining Information To JVMTI Agents
Problem: (from 6580131 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.
Solution: (from 100085 Description)
Whenever Hotspot JVM compiles a method, it creates
a list of records that specify what method invocations are
on the compile-time stack at each program address. Hotspot JVM
was extended to make this information visible to external
tools through the JVMTI layer, without altering the JVMTI
specification. The main change was to pass this stack
information through the CompiledMethodLoad JVMTI callback.
As a result, external tools can use this information
to produce better source-to-address mapping.
Contributed-by: Vasanth.Venkatachalam at amd.com
Reviewed by:
Other testing:
JPRT
More information about the hotspot-dev
mailing list