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

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

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

Changes: https://git.openjdk.org/jdk/pull/32848/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32848&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8247504
  Stats: 11 lines in 3 files changed: 11 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/32848.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32848/head:pull/32848

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

Reply via email to