hotspot/src/share/vm/memory/metaspaceShared.cpp
changeset 46619 a3919f5e8d2b
parent 46618 d503911aa948
child 46625 edefffab74e2
--- a/hotspot/src/share/vm/memory/metaspaceShared.cpp	Wed Apr 12 17:53:18 2017 +0200
+++ b/hotspot/src/share/vm/memory/metaspaceShared.cpp	Tue Jul 04 15:58:10 2017 +0200
@@ -83,8 +83,8 @@
 char* SharedMiscRegion::alloc(size_t num_bytes) {
   assert(DumpSharedSpaces, "dump time only");
   size_t alignment = sizeof(char*);
-  num_bytes = align_size_up(num_bytes, alignment);
-  _alloc_top = align_ptr_up(_alloc_top, alignment);
+  num_bytes = align_up(num_bytes, alignment);
+  _alloc_top = align_up(_alloc_top, alignment);
   if (_alloc_top + num_bytes > _vs.high()) {
     report_out_of_shared_space(_space_type);
   }