hotspot/src/share/vm/c1/c1_Compilation.cpp
changeset 33160 c59f1676d27e
parent 29081 c61eb4914428
child 33451 0712796e4039
equal deleted inserted replaced
33159:89b942323bd1 33160:c59f1676d27e
   323   char* locs_buffer = NEW_RESOURCE_ARRAY(char, locs_buffer_size);
   323   char* locs_buffer = NEW_RESOURCE_ARRAY(char, locs_buffer_size);
   324   code->insts()->initialize_shared_locs((relocInfo*)locs_buffer,
   324   code->insts()->initialize_shared_locs((relocInfo*)locs_buffer,
   325                                         locs_buffer_size / sizeof(relocInfo));
   325                                         locs_buffer_size / sizeof(relocInfo));
   326   code->initialize_consts_size(Compilation::desired_max_constant_size());
   326   code->initialize_consts_size(Compilation::desired_max_constant_size());
   327   // Call stubs + two deopt handlers (regular and MH) + exception handler
   327   // Call stubs + two deopt handlers (regular and MH) + exception handler
   328   int stub_size = (call_stub_estimate * LIR_Assembler::call_stub_size) +
   328   int call_stub_size = LIR_Assembler::call_stub_size;
       
   329   int stub_size = (call_stub_estimate * call_stub_size) +
   329                    LIR_Assembler::exception_handler_size +
   330                    LIR_Assembler::exception_handler_size +
   330                    (2 * LIR_Assembler::deopt_handler_size);
   331                    (2 * LIR_Assembler::deopt_handler_size);
   331   if (stub_size >= code->insts_capacity()) return false;
   332   if (stub_size >= code->insts_capacity()) return false;
   332   code->initialize_stubs_size(stub_size);
   333   code->initialize_stubs_size(stub_size);
   333   return true;
   334   return true;