Integrated: 8355228: Improve runtime/CompressedOops/CompressedClassPointersEncodingScheme.java to support JDK build with -XX:+UseCompactObjectHeaders

Leonid Mesnik lmesnik at openjdk.org
Wed Apr 23 16:07:49 UTC 2025


On Mon, 21 Apr 2025 21:18:34 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> Sometimes it is easier to test JDK by building it with
>  -XX:+UseCompactObjectHeaders
> enabled by default. So CDS archives are generated and all tests including flagless are executed.
> The option is transparent fand all tests even flagless tests are expected to  pass.
> 
> The only test runtime/CompressedOops/CompressedClassPointersEncodingScheme.java
> start failing because expects to be executed with -XX:-UseCompactObjectHeaders
> 
> Please, note that it is a not a bug, just RFE. Test works  correctly.   
> 
> The fix improves test  to support testing of JDK build with -XX:+UseCompactObjectHeaders.
> 
> Tested with JDK build with UseCompactObjectHeaders enabled by default.

This pull request has now been integrated.

Changeset: 1a72febc
Author:    Leonid Mesnik <lmesnik at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1a72febc97de3d0ade8813951797dfda1984650f
Stats:     3 lines in 1 file changed: 2 ins; 0 del; 1 mod

8355228: Improve runtime/CompressedOops/CompressedClassPointersEncodingScheme.java to support JDK build with -XX:+UseCompactObjectHeaders

Reviewed-by: syan, stuefe, coleenp

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

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


More information about the hotspot-runtime-dev mailing list