Skip to content
Permalink
Browse files
8246689: Enable independent compressed oops/class ptrs on Aarch64
Reviewed-by: eosterlund
  • Loading branch information
Patric Hedlin committed Jun 8, 2020
1 parent 6cbd66b commit 201d0a48d1ba6249aea147b0fd8a97bdf0d4d295
Showing 2 changed files with 10 additions and 6 deletions.
@@ -56,6 +56,6 @@ const bool CCallingConventionRequiresIntsAsLongs = false;

#define SUPPORT_RESERVED_STACK_AREA

#define COMPRESSED_CLASS_POINTERS_DEPENDS_ON_COMPRESSED_OOPS true
#define COMPRESSED_CLASS_POINTERS_DEPENDS_ON_COMPRESSED_OOPS false

#endif // CPU_AARCH64_GLOBALDEFINITIONS_AARCH64_HPP
@@ -212,7 +212,10 @@ public static void smallHeapTestWith1GNoCoop() throws Exception {
"-XX:+VerifyBeforeGC", "-version");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldContain("Narrow klass base: 0x0000000000000000");
output.shouldContain("Narrow klass shift: 0");
if (!Platform.isAArch64()) {
// Currently relax this test for Aarch64.
output.shouldContain("Narrow klass shift: 0");
}
output.shouldHaveExitValue(0);
}

@@ -230,7 +233,10 @@ public static void largeHeapTestNoCoop() throws Exception {
"-XX:+VerifyBeforeGC", "-version");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldContain("Narrow klass base: 0x0000000000000000");
output.shouldContain("Narrow klass shift: 0");
if (!Platform.isAArch64()) {
// Currently relax this test for Aarch64.
output.shouldContain("Narrow klass shift: 0");
}
output.shouldHaveExitValue(0);
}

@@ -309,9 +315,7 @@ public static void main(String[] args) throws Exception {
heapBaseMinAddressTest();
sharingTest();

boolean ccpRequiresCoop = Platform.isAArch64();

if (!ccpRequiresCoop && !Platform.isOSX()) {
if (!Platform.isOSX()) {
// Testing compressed class pointers without compressed oops.
// This is only possible if the platform supports it. Notably,
// on macOS, when compressed oops is disabled and the heap is

0 comments on commit 201d0a4

Please sign in to comment.