--- a/hotspot/src/share/vm/gc/parallel/mutableSpace.cpp Thu Jun 22 09:07:47 2017 +0200
+++ b/hotspot/src/share/vm/gc/parallel/mutableSpace.cpp Tue Apr 11 23:45:37 2017 +0200
@@ -177,7 +177,7 @@
if (pointer_delta(end(), obj) >= size) {
HeapWord* new_top = obj + size;
set_top(new_top);
- assert(is_object_aligned((intptr_t)obj) && is_object_aligned((intptr_t)new_top),
+ assert(is_ptr_object_aligned(obj) && is_ptr_object_aligned(new_top),
"checking alignment");
return obj;
} else {
@@ -198,7 +198,7 @@
if (result != obj) {
continue; // another thread beat us to the allocation, try again
}
- assert(is_object_aligned((intptr_t)obj) && is_object_aligned((intptr_t)new_top),
+ assert(is_ptr_object_aligned(obj) && is_ptr_object_aligned(new_top),
"checking alignment");
return obj;
} else {