--- a/src/hotspot/share/gc/shared/collectedHeap.cpp Thu Sep 12 15:04:00 2019 +0200
+++ b/src/hotspot/share/gc/shared/collectedHeap.cpp Wed Sep 18 07:46:02 2019 +0200
@@ -175,7 +175,7 @@
}
bool CollectedHeap::is_oop(oop object) const {
- if (!check_obj_alignment(object)) {
+ if (!is_object_aligned(object)) {
return false;
}
@@ -345,7 +345,7 @@
#endif // PRODUCT
void CollectedHeap::check_oop_location(void* addr) const {
- assert(check_obj_alignment(addr), "address is not aligned");
+ assert(is_object_aligned(addr), "address is not aligned");
assert(_reserved.contains(addr), "address is not in reserved heap");
}