--- a/hotspot/src/share/vm/gc/parallel/cardTableExtension.cpp Wed Apr 12 17:53:18 2017 +0200
+++ b/hotspot/src/share/vm/gc/parallel/cardTableExtension.cpp Tue Jul 04 15:58:10 2017 +0200
@@ -504,14 +504,14 @@
}
#ifdef ASSERT
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
- assert(cur_committed.start() == align_ptr_up(cur_committed.start(), os::vm_page_size()),
+ assert(cur_committed.start() == align_up(cur_committed.start(), os::vm_page_size()),
"Starts should have proper alignment");
#endif
jbyte* new_start = byte_for(new_region.start());
// Round down because this is for the start address
HeapWord* new_start_aligned =
- (HeapWord*)align_size_down((uintptr_t)new_start, os::vm_page_size());
+ (HeapWord*)align_down((uintptr_t)new_start, os::vm_page_size());
// The guard page is always committed and should not be committed over.
// This method is used in cases where the generation is growing toward
// lower addresses but the guard region is still at the end of the
@@ -584,7 +584,7 @@
jbyte* new_start = byte_for(new_region.start());
// Set the new start of the committed region
HeapWord* new_start_aligned =
- (HeapWord*)align_ptr_down(new_start, os::vm_page_size());
+ (HeapWord*)align_down(new_start, os::vm_page_size());
MemRegion new_committed = MemRegion(new_start_aligned,
_committed[changed_region].end());
_committed[changed_region] = new_committed;