diff --git a/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointersEncodingScheme.java b/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointersEncodingScheme.java index d76aa2fd3b4e4..fadaf4bbce286 100644 --- a/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointersEncodingScheme.java +++ b/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointersEncodingScheme.java @@ -93,11 +93,9 @@ public static void main(String[] args) throws Exception { } // Test ccs starting *below* 4G, but extending upwards beyond 4G. All platforms except aarch64 should pick - // zero based encoding. - if (Platform.isAArch64()) { - long forceAddress = 0xC000_0000L; // make sure we have a valid EOR immediate - test(forceAddress, false, G + (128 * M), forceAddress, 0); - } else { + // zero based encoding. On aarch64, this test is excluded since the only valid mode would be XOR, but bit + // pattern for base and bit pattern would overlap. + if (!Platform.isAArch64()) { test(4 * G - 128 * M, false, 2 * 128 * M, 0, 3); } // add more...