hotspot/src/share/vm/oops/constMethod.cpp
changeset 46619 a3919f5e8d2b
parent 45240 e804b9d60859
child 46625 edefffab74e2
--- a/hotspot/src/share/vm/oops/constMethod.cpp	Wed Apr 12 17:53:18 2017 +0200
+++ b/hotspot/src/share/vm/oops/constMethod.cpp	Tue Jul 04 15:58:10 2017 +0200
@@ -128,7 +128,7 @@
   }
 
   // Align sizes up to a word.
-  extra_bytes = align_size_up(extra_bytes, BytesPerWord);
+  extra_bytes = align_up(extra_bytes, BytesPerWord);
 
   // One pointer per annotation array
   if (sizes->method_annotations_length() > 0) {
@@ -144,7 +144,7 @@
     extra_bytes += sizeof(AnnotationArray*);
   }
 
-  int extra_words = align_size_up(extra_bytes, BytesPerWord) / BytesPerWord;
+  int extra_words = align_up(extra_bytes, BytesPerWord) / BytesPerWord;
   assert(extra_words == extra_bytes/BytesPerWord, "should already be aligned");
   return align_metadata_size(header_size() + extra_words);
 }