RFR: 8355228: Improve runtime/CompressedOops/CompressedClassPointersEncodingScheme.java to support JDK build with -XX:+UseCompactObjectHeaders
Thomas Stuefe
stuefe at openjdk.org
Tue Apr 22 07:23:57 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.
Makes sense.
-------------
Marked as reviewed by stuefe (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24781#pullrequestreview-2783062745
More information about the hotspot-runtime-dev
mailing list