On Fri, 23 Oct 2026 00:14:54 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`.
> 
> The CSR is: [JDK-8397026](https://bugs.openjdk.org/browse/JDK-8397026): 
> GetLocalInstance should return OPAQUE_FRAME for objects with strict-init 
> fields
> 
> Testing:
>  - Run the impacted test before and after the fix:
>    
> `test/hotspot/jtreg/serviceability/jvmti/valhalla/GetCtorLocal/ValueGetCtorLocal.java`
>  - mach5 tiers 1-6 are GREEN
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 918aab0c
Author:    Serguei Spitsyn <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/918aab0c4a9f8a242dad2f2c297d10382df4d306
Stats:     843 lines in 8 files changed: 764 ins; 58 del; 21 mod

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

Reviewed-by: cjplummer, alanb

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

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

Reply via email to