src/share/vm/opto/compile.cpp

Print this page

        

@@ -428,11 +428,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 Compile::bang_size_in_bytes() const {
-  return MAX2(_interpreter_frame_size, frame_size_in_bytes());
+  return MAX2(frame_size_in_bytes() + os::extra_bang_size_in_bytes(), _interpreter_frame_size);
 }
 
 // ============================================================================
 //------------------------------CompileWrapper---------------------------------
 class CompileWrapper : public StackObj {