RFR: 8367372: Test `test/hotspot/jtreg/gc/TestObjectAlignmentCardSize.java` fails on 32 bit systems

Thomas Schatzl tschatzl at openjdk.org
Fri Sep 12 09:05:28 UTC 2025


On Fri, 12 Sep 2025 08:27:37 GMT, Hamlin Li <mli at openjdk.org> wrote:

>> On 32-bit systems, the `test/hotspot/jtreg/gc/TestObjectAlignmentCardSize.java` uses the `ObjectAlignmentInBytes` flag, which isn't supported on 32 bit systems. I'm adjusting this test to require `vm.bits` is 64 as per similar [tests](https://github.com/openjdk/jdk/blob/85715e1050fa774c3267dbbe2f749717aeeec8ff/test/hotspot/jtreg/runtime/CompressedOops/CompressedKlassPointerAndOops.java#L31).
>> 
>> Tested on:
>> * 64-bit: with and without change (passes both times)
>> * 32-bit: with and without change (fails before, skips after)
>> Note: seeing some GHA failures, but unrelated to the actual test.
>
> Marked as reviewed by mli (Reviewer).

@Hamlin-Li : same as the other PR, please respect the 24h rule when sponsoring. The author did not even suggest that it is trivial. Thanks.

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

PR Comment: https://git.openjdk.org/jdk/pull/27230#issuecomment-3284402619


More information about the hotspot-gc-dev mailing list