On Thu, 29 Oct 2026 05:54:13 GMT, Serguei Spitsyn <[email protected]> wrote:
>> This is a spec and implementation update for JVMTI `GetLocalObject` and >> `GetLocalInstance` functions related to getting the `this` object during >> value object construction. Current implementation is to return a snapshot of >> the `this` object. This update changes it to reject JVMTI `GetLocalObject` >> and `GetLocalInstance` functions with the error code >> `JVMTI_ERROR_OPAQUE_FRAME`. >> >> TBD: Will create a related CSR. >> >> Testing: >> - Run the impacted test before and after the fix: >> >> `test/hotspot/jtreg/serviceability/jvmti/valhalla/GetCtorLocal/ValueGetCtorLocal.java` >> - TBD: Run mach5 tiers 1-6 >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Serguei Spitsyn has updated the pull request incrementally with one > additional commit since the last revision: > > add new test GetCtorLocalStrictInitFields.java I've add new test `serviceability/jvmti/valhalla/GetCtorLocal/GetCtorLocalStrictInitFields.java` which has been converted from the `ForceEarlyReturn` test: `serviceability/jvmti/ForceEarlyReturn/ForceEarlyReturnStrictInitFields.java` by replacing the JVMTI `ForceEarlyReturnVoid` with the `GetLocalInstance/GetLocalObject` calls and removal of class initializer test cases. ------------- PR Comment: https://git.openjdk.org/jdk/pull/33526#issuecomment-6489197643
