hotspot/src/share/vm/jvmci/jvmciCodeInstaller.cpp
changeset 46620 750c6edff33b
parent 46479 a10af96a2dbb
child 46625 edefffab74e2
equal deleted inserted replaced
46619:a3919f5e8d2b 46620:750c6edff33b
   741   // Allocate enough space in the stub section for the static call
   741   // Allocate enough space in the stub section for the static call
   742   // stubs.  Stubs have extra relocs but they are managed by the stub
   742   // stubs.  Stubs have extra relocs but they are managed by the stub
   743   // section itself so they don't need to be accounted for in the
   743   // section itself so they don't need to be accounted for in the
   744   // locs_buffer above.
   744   // locs_buffer above.
   745   int stubs_size = estimate_stubs_size(CHECK_OK);
   745   int stubs_size = estimate_stubs_size(CHECK_OK);
   746   int total_size = round_to(_code_size, buffer.insts()->alignment()) + round_to(_constants_size, buffer.consts()->alignment()) + round_to(stubs_size, buffer.stubs()->alignment());
   746   int total_size = align_up(_code_size, buffer.insts()->alignment()) + align_up(_constants_size, buffer.consts()->alignment()) + align_up(stubs_size, buffer.stubs()->alignment());
   747 
   747 
   748   if (check_size && total_size > JVMCINMethodSizeLimit) {
   748   if (check_size && total_size > JVMCINMethodSizeLimit) {
   749     return JVMCIEnv::code_too_large;
   749     return JVMCIEnv::code_too_large;
   750   }
   750   }
   751 
   751