hotspot/src/share/vm/jvmci/jvmciCodeInstaller.cpp
changeset 46620 750c6edff33b
parent 46479 a10af96a2dbb
child 46625 edefffab74e2
--- a/hotspot/src/share/vm/jvmci/jvmciCodeInstaller.cpp	Tue Jul 04 15:58:10 2017 +0200
+++ b/hotspot/src/share/vm/jvmci/jvmciCodeInstaller.cpp	Thu Apr 13 09:57:51 2017 +0200
@@ -743,7 +743,7 @@
   // section itself so they don't need to be accounted for in the
   // locs_buffer above.
   int stubs_size = estimate_stubs_size(CHECK_OK);
-  int total_size = round_to(_code_size, buffer.insts()->alignment()) + round_to(_constants_size, buffer.consts()->alignment()) + round_to(stubs_size, buffer.stubs()->alignment());
+  int total_size = align_up(_code_size, buffer.insts()->alignment()) + align_up(_constants_size, buffer.consts()->alignment()) + align_up(stubs_size, buffer.stubs()->alignment());
 
   if (check_size && total_size > JVMCINMethodSizeLimit) {
     return JVMCIEnv::code_too_large;