< prev index next >

src/share/vm/memory/metaspaceShared.cpp

Print this page

        

@@ -81,12 +81,12 @@
 
 // NOT thread-safe, but this is called during dump time in single-threaded mode.
 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);
   }
 
   char* p = _alloc_top;
< prev index next >