< prev index next >

src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp

Print this page
rev 48167 : 8193266: AArch64: TestOptionsWithRanges.java SIGSEGV

@@ -82,15 +82,18 @@
   // Maximum size of class area in Metaspace when compressed
   uint64_t use_XOR_for_compressed_class_base;
 
  public:
   MacroAssembler(CodeBuffer* code) : Assembler(code) {
+    /* SRDM This is not friendly */
+    const uint64_t UnscaledClassSpaceMax = (uint64_t(max_juint) + 1);
+
     use_XOR_for_compressed_class_base
       = (operand_valid_for_logical_immediate(false /*is32*/,
                                              (uint64_t)Universe::narrow_klass_base())
          && ((uint64_t)Universe::narrow_klass_base()
-             > (1u << log2_intptr(CompressedClassSpaceSize))));
+             > (1ul << log2_intptr(UnscaledClassSpaceMax))));
   }
 
  // These routines should emit JVMTI PopFrame and ForceEarlyReturn handling code.
  // The implementation is only non-empty for the InterpreterMacroAssembler,
  // as only the interpreter handles PopFrame and ForceEarlyReturn requests.
< prev index next >