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`.
This will need a release-note.

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).

-------------

Commit messages:
 - Merge
 - 8395356: GetLocalInstance should return OPAQUE_FRAME for objects with 
strict-init fields

Changes: https://git.openjdk.org/jdk/pull/33526/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33526&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8395356
  Stats: 88 lines in 6 files changed: 16 ins; 55 del; 17 mod
  Patch: https://git.openjdk.org/jdk/pull/33526.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33526/head:pull/33526

PR: https://git.openjdk.org/jdk/pull/33526

Reply via email to