diff --git a/test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java b/test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java index fbb2a55cb0d..e3854f97c14 100644 --- a/test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java +++ b/test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java @@ -42,6 +42,7 @@ * @library /test/lib * @requires vm.bits == "64" * @requires vm.opt.UseCompressedClassPointers != false + * @requires vm.opt.UseCompactObjectHeaders != true * @modules java.base/jdk.internal.misc * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseCompactObjectHeaders -XX:+UseCompressedClassPointers ArrayBaseOffsets */ @@ -49,6 +50,7 @@ * @test id=no-coh-no-ccp * @library /test/lib * @requires vm.bits == "64" + * @requires vm.opt.UseCompactObjectHeaders != true * @modules java.base/jdk.internal.misc * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseCompactObjectHeaders -XX:-UseCompressedClassPointers ArrayBaseOffsets */