8246689: Enable independent compressed oops/class ptrs on Aarch64

Reviewed-by: eosterlund
This commit is contained in:
Patric Hedlin 2020-06-08 13:57:55 +02:00
parent 6cbd66b1c1
commit 201d0a48d1
2 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -212,7 +212,10 @@ public class CompressedClassPointers {
"-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 class CompressedClassPointers {
"-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 class CompressedClassPointers {
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