mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6962980: C1: stub area should take into account method handle deopt stub
Reviewed-by: twisti, never
This commit is contained in:
parent
fdaa7a673c
commit
7a40a76a81
1 changed files with 2 additions and 2 deletions
|
@ -242,10 +242,10 @@ void Compilation::setup_code_buffer(CodeBuffer* code, int call_stub_estimate) {
|
|||
code->insts()->initialize_shared_locs((relocInfo*)locs_buffer,
|
||||
locs_buffer_size / sizeof(relocInfo));
|
||||
code->initialize_consts_size(Compilation::desired_max_constant_size());
|
||||
// Call stubs + deopt/exception handler
|
||||
// Call stubs + two deopt handlers (regular and MH) + exception handler
|
||||
code->initialize_stubs_size((call_stub_estimate * LIR_Assembler::call_stub_size) +
|
||||
LIR_Assembler::exception_handler_size +
|
||||
LIR_Assembler::deopt_handler_size);
|
||||
2 * LIR_Assembler::deopt_handler_size);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue