--- a/hotspot/src/share/vm/gc/g1/g1AllocRegion.cpp Wed Apr 12 17:53:18 2017 +0200
+++ b/hotspot/src/share/vm/gc/g1/g1AllocRegion.cpp Tue Jul 04 15:58:10 2017 +0200
@@ -287,7 +287,7 @@
// Determine how far we are from the next card boundary. If it is smaller than
// the minimum object size we can allocate into, expand into the next card.
HeapWord* top = cur->top();
- HeapWord* aligned_top = align_ptr_up(top, BOTConstants::N_bytes);
+ HeapWord* aligned_top = align_up(top, BOTConstants::N_bytes);
size_t to_allocate_words = pointer_delta(aligned_top, top, HeapWordSize);