This enhancement is to a add JVMTI debugging support for value object construction. The fix includes: - Minor `GetLocalObject` and `GetLocalInstance` spec clarifications - JVMTI functions `GetLocalObject` and `GetLocalInstance` now return a snapshot of the `THIS` object if it is requested during a value object construction. - This update adds new test with a needed test coverage: `test/hotspot/jtreg/serviceability/jvmti/valhalla/GetCtorLocal`. - Some corrections in the test `test/hotspot/jtreg/serviceability/jvmti/valhalla/GetSetLocal` for unification with the test above.
Testing: - Tested locally with new test `GetCtorLocal` - Tested with 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: - 8382704: [lworld] GetLocalObject/GetLocalInstance for THIS value objects during construction Changes: https://git.openjdk.org/valhalla/pull/2363/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2363&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8382704 Stats: 274 lines in 8 files changed: 252 ins; 10 del; 12 mod Patch: https://git.openjdk.org/valhalla/pull/2363.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2363/head:pull/2363 PR: https://git.openjdk.org/valhalla/pull/2363
