From b4aca74e69c203aab8d4e9ff92fbd9f4c48f7acd Mon Sep 17 00:00:00 2001 From: lxw Date: Tue, 14 May 2024 17:11:41 +0800 Subject: [PATCH] [GC] Disable ArrayBaseOffsets.java on risc64 Summary: alignment of array elements hasn't changed on risc64, thus skip its test Testing: test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java Reviewers: mmyxym, sendaoYan Issue: https://github.com/dragonwell-project/dragonwell11/issues/814 --- test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java b/test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java index e3854f97c14..97e01d963cb 100644 --- a/test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java +++ b/test/hotspot/jtreg/runtime/FieldLayout/ArrayBaseOffsets.java @@ -26,6 +26,7 @@ * @library /test/lib * @requires vm.bits == "64" * @requires vm.opt.UseCompressedClassPointers != false + * @requires os.arch=="amd64" | os.arch=="x86_64" | os.arch=="aarch64" * @modules java.base/jdk.internal.misc * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObjectHeaders -XX:+UseCompressedOops ArrayBaseOffsets */ @@ -34,6 +35,7 @@ * @library /test/lib * @requires vm.bits == "64" * @requires vm.opt.UseCompressedClassPointers != false + * @requires os.arch=="amd64" | os.arch=="x86_64" | os.arch=="aarch64" * @modules java.base/jdk.internal.misc * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObjectHeaders -XX:-UseCompressedOops ArrayBaseOffsets */ @@ -43,6 +45,7 @@ * @requires vm.bits == "64" * @requires vm.opt.UseCompressedClassPointers != false * @requires vm.opt.UseCompactObjectHeaders != true + * @requires os.arch=="amd64" | os.arch=="x86_64" | os.arch=="aarch64" * @modules java.base/jdk.internal.misc * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseCompactObjectHeaders -XX:+UseCompressedClassPointers ArrayBaseOffsets */ @@ -51,6 +54,7 @@ * @library /test/lib * @requires vm.bits == "64" * @requires vm.opt.UseCompactObjectHeaders != true + * @requires os.arch=="amd64" | os.arch=="x86_64" | os.arch=="aarch64" * @modules java.base/jdk.internal.misc * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseCompactObjectHeaders -XX:-UseCompressedClassPointers ArrayBaseOffsets */