src/cpu/x86/vm/templateInterpreter_x86.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/cpu/x86/vm/templateInterpreter_x86.cpp	Thu Dec 17 17:52:10 2015
--- new/src/cpu/x86/vm/templateInterpreter_x86.cpp	Thu Dec 17 17:52:09 2015

*** 25,46 **** --- 25,55 ---- #include "precompiled.hpp" #include "ci/ciMethod.hpp" #include "interpreter/interpreter.hpp" #include "runtime/frame.inline.hpp" #ifndef CC_INTERP + // Size of interpreter code. Increase if too small. Interpreter will + // fail with a guarantee ("not enough space for interpreter generation"); + // if too small. + // Run with +PrintInterpreter to get the VM to print out the size. + // Max size with JVMTI + #ifdef AMD64 + int TemplateInterpreter::InterpreterCodeSize = 256 * 1024; + #else + int TemplateInterpreter::InterpreterCodeSize = 224 * 1024; + #endif // AMD64 // asm based interpreter deoptimization helpers int AbstractInterpreter::size_activation(int max_stack, int temps, int extra_args, int monitors, int callee_params, int callee_locals, bool is_top_frame) { // Note: This calculation must exactly parallel the frame setup ! // in TemplateInterpreterGenerator::generate_fixed_frame. // fixed size of an interpreter frame: int overhead = frame::sender_sp_offset - frame::interpreter_frame_initial_sp_offset; // Our locals were accounted for by the caller (or last_frame_adjust
*** 196,202 **** --- 205,209 ---- const int method_stack = (method->max_locals() + method->max_stack()) * Interpreter::stackElementWords; return (overhead_size + method_stack + stub_code); } #endif // CC_INTERP

src/cpu/x86/vm/templateInterpreter_x86.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File