Tue, 22 Jun 2010 12:10:07 -0700
6962980: C1: stub area should take into account method handle deopt stub
Reviewed-by: twisti, never
src/share/vm/c1/c1_Compilation.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/c1/c1_Compilation.cpp Mon Jun 21 14:26:17 2010 -0700 1.2 +++ b/src/share/vm/c1/c1_Compilation.cpp Tue Jun 22 12:10:07 2010 -0700 1.3 @@ -242,10 +242,10 @@ 1.4 code->insts()->initialize_shared_locs((relocInfo*)locs_buffer, 1.5 locs_buffer_size / sizeof(relocInfo)); 1.6 code->initialize_consts_size(Compilation::desired_max_constant_size()); 1.7 - // Call stubs + deopt/exception handler 1.8 + // Call stubs + two deopt handlers (regular and MH) + exception handler 1.9 code->initialize_stubs_size((call_stub_estimate * LIR_Assembler::call_stub_size) + 1.10 LIR_Assembler::exception_handler_size + 1.11 - LIR_Assembler::deopt_handler_size); 1.12 + 2 * LIR_Assembler::deopt_handler_size); 1.13 } 1.14 1.15