src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp

Print this page

        

@@ -1563,10 +1563,13 @@
   if (info != NULL) add_debug_info_for_null_check(offset, info);
 }
 
 
 void LIR_Assembler::return_op(LIR_Opr result) {
+  if (StackReservedPages > 0 && compilation()->has_reserved_stack_access()) {
+    __ reserved_stack_check();
+  }
   // the poll may need a register so just pick one that isn't the return register
 #if defined(TIERED) && !defined(_LP64)
   if (result->type_field() == LIR_OprDesc::long_type) {
     // Must move the result to G1
     // Must leave proper result in O0,O1 and G1 (TIERED only)