-
Enhancement
-
Resolution: Won't Fix
-
P4
-
14
-
x86
diff -r 7a9a828195c7 src/hotspot/cpu/x86/x86_64.ad
--- a/src/hotspot/cpu/x86/x86_64.ad Mon Mar 11 18:44:40 2019 +0100
+++ b/src/hotspot/cpu/x86/x86_64.ad Thu Mar 21 12:44:49 2019 +0100
@@ -352,11 +352,12 @@
RegMask _STACK_OR_PTR_REG_mask;
RegMask _STACK_OR_LONG_REG_mask;
RegMask _STACK_OR_INT_REG_mask;
static bool need_r12_heapbase() {
- return UseCompressedOops || UseCompressedClassPointers;
+ return (UseCompressedOops && (Universe::narrow_oop_base() != NULL)) ||
+ (UseCompressedClassPointers && (Universe::narrow_klass_base() != NULL));
}
void reg_mask_init() {
// _ALL_REG_mask is generated by adlc from the all_reg register class below.
// We derive a number of subsets from it.
- relates to
-
JDK-8241825 Make compressed oops and compressed class pointers independent (x86_64, PPC, S390)
- Resolved
-
JDK-8217909 Make unused r12 register (without compressed oops) available to regalloc in C2
- Resolved