RFR(S): 8169467: GetLocalInstance returns JVMTI_ERROR_TYPE_MISMATCH (rather than JVMTI_ERROR_INVALID_SLOT) on static method

serguei.spitsyn at oracle.com serguei.spitsyn at oracle.com
Tue Nov 19 23:36:52 UTC 2019


Please, review a fix for:
   https://bugs.openjdk.java.net/browse/JDK-8169467

Webrev:
http://cr.openjdk.java.net/~sspitsyn/webrevs/2019/8169467-jvmti-local-instance.1/

Summary:
   The JVMTI GetLocalInstance function should return 
JVMTI_ERROR_INVALID_SLOT for static method frames.
   Instead, it returns the JVMTI_ERROR_TYPE_MISMATCH error.
   The fix adds necessary checks into the implementation.

Testing in progress:
   - Locally on Linux-x64 with: vmTestbase_nsk_jvmti, 
vmTestbase_nsk_jdi, jdk_jdi
   - All mach5 hs-tier5

Thanks,
Serguei


More information about the serviceability-dev mailing list