< prev index next >

src/share/vm/gc/g1/g1Allocator.cpp

Print this page

        

@@ -436,20 +436,20 @@
   }
 
   // If an end alignment was requested, insert filler objects.
   if (end_alignment_in_bytes != 0) {
     HeapWord* currtop = _allocation_region->top();
-    HeapWord* newtop = (HeapWord*)align_pointer_up(currtop, end_alignment_in_bytes);
+    HeapWord* newtop = (HeapWord*)align_ptr_up(currtop, end_alignment_in_bytes);
     size_t fill_size = pointer_delta(newtop, currtop);
     if (fill_size != 0) {
       if (fill_size < CollectedHeap::min_fill_size()) {
         // If the required fill is smaller than we can represent,
         // bump up to the next aligned address. We know we won't exceed the current
         // region boundary because the max supported alignment is smaller than the min
         // region size, and because the allocation code never leaves space smaller than
         // the min_fill_size at the top of the current allocation region.
-        newtop = (HeapWord*)align_pointer_up(currtop + CollectedHeap::min_fill_size(),
+        newtop = (HeapWord*)align_ptr_up(currtop + CollectedHeap::min_fill_size(),
                                              end_alignment_in_bytes);
         fill_size = pointer_delta(newtop, currtop);
       }
       HeapWord* fill = archive_mem_allocate(fill_size);
       CollectedHeap::fill_with_objects(fill, fill_size);
< prev index next >