src/share/vm/c1/c1_LIRAssembler.cpp

Print this page

        

@@ -168,11 +168,11 @@
 // To bang the stack of this compiled method we use the stack size
 // that the interpreter would need in case of a deoptimization. This
 // removes the need to bang the stack in the deoptimization blob which
 // in turn simplifies stack overflow handling.
 int LIR_Assembler::bang_size_in_bytes() const {
-  return MAX2(initial_frame_size_in_bytes(), _compilation->interpreter_frame_size());
+  return MAX2(initial_frame_size_in_bytes() + os::extra_bang_size_in_bytes(), _compilation->interpreter_frame_size());
 }
 
 void LIR_Assembler::emit_exception_entries(ExceptionInfoList* info_list) {
   for (int i = 0; i < info_list->length(); i++) {
     XHandlers* handlers = info_list->at(i)->exception_handlers();