RFR: 8209414: AArch64: method handle invocation does not respect JVMTI interp_only mode

Andrew Haley aph at redhat.com
Wed Dec 19 17:24:39 UTC 2018

On 12/19/18 7:31 AM, Nick Gasson (Arm Technology China) wrote:
> In MethodHandles::jump_from_method_handle the test on the value of the 
> _interp_only_mode thread field is wrong: if this is non-zero we are 
> tracing or single stepping with JVMTI and should always branch to the 
> interpreted entry, to ensure the JVMTI method entry/exit hooks are 
> called. But in the AArch64 version we branch to the interpreted entry if 
> this value is *zero*, which is backwards.

Ouch. That's my fault.

This one merits a backport, I think. Is anyone keeping track of which
patches must be backported to jdk8?

Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671

More information about the hotspot-dev mailing list