Skip to content

Commit

Permalink
fix CompressedClassPointersEncodingScheme yet again for linux aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
tstuefe committed Sep 17, 2024
1 parent 6a4617b commit 28a26ae
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit 28a26ae

Please sign in to comment.