mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-20 07:15:31 +00:00
8246689: Enable independent compressed oops/class ptrs on Aarch64
Reviewed-by: eosterlund
This commit is contained in:
parent
6cbd66b1c1
commit
201d0a48d1
@ -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 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user