JDK-6990212 : JSR 292 JVMTI MethodEnter hook is not called for JSR 292 bootstrap and target methods
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs20
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-07
  • Updated: 2013-10-24
  • Resolved: 2011-09-30
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 7 JDK 8 Other
7u2Fixed 8Fixed hs22Fixed
Related Reports
Duplicate :  
Relates :  
Description
JVMTI MethodEntry hook is:

- not called for JSR 292 bootstrap method.
- called only once for multiple JSR 292 target method invocations from the same CallSite 

Tested on JDK 7 b112 (hs20-b01).

Please see comments for details.
For b135: MethodEntry is not called for methods called using invokedynamic from compiled code (-Xcomp)

Comments
EVALUATION See main CR
12-09-2011

EVALUATION 6990212: JSR 292 JVMTI MethodEnter hook is not called for JSR 292 bootstrap and target methods Summary: check for single stepping when dispatching invokes from method handles Reviewed-by: coleenp, twisti, kvn, dsamersoff Single stepping and method entry events requires some machinery in the interpreter to make sure that we never jump into compiled code but the method handle invoke path doesn't have that code. The fix is to reintroduce the required check and dispatch to the interpreted entry in that case. Tested with failing test cases from report plus a simple test case to exercise the MH raiseException path since I had to rewrite the arugment passing there.
26-07-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/341a57af9b0a
23-07-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/341a57af9b0a
21-07-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/341a57af9b0a
16-07-2011

EVALUATION I just reproduced this with -Xcomp. I think the method handle invoke path is missing the required interp_only_mode checks to avoid jumping into compiled code.
30-06-2011