On Sat, 12 Sep 2026 05:51:12 GMT, Yasumasa Suenaga <[email protected]> wrote:

> After Valhalla, `InstanceKlass::size()` in HotSpot adds sizeof 
> `ValueKlass::Members` for value class, however SA does not do. It caused the 
> failure in TestInstanceKlassSize.java with `--enable-preview`.
> 
> This PR fixes the problem, and adds the test for `java.lang.Byte` to 
> TestInstanceKlassSize.java again (removed by JEP 401).
> 
> ---------
> - [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: b78eefdc
Author:    Yasumasa Suenaga <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/b78eefdcdd79c546243c84d051cd60561260de3d
Stats:     11 lines in 3 files changed: 11 ins; 0 del; 0 mod

8247504: SA: InstanceKlass.getSize() needs an update because of value types

Reviewed-by: cjplummer, sspitsyn

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

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

Reply via email to