< prev index next >
src/share/vm/gc/parallel/mutableSpace.cpp
Print this page
@@ -175,11 +175,11 @@
"not locked");
HeapWord* obj = top();
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 {
return NULL;
}
@@ -196,11 +196,11 @@
// the old top value: the exchange succeeded
// otherwise: the new value of the top is returned.
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 {
return NULL;
}
< prev index next >