Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/hotspot/share/gc/z/zVerify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ static void z_verify_root_oop_object(zaddress addr, void* p) {

static void z_verify_old_oop(zpointer* p) {
const zpointer o = *p;
assert(o != zpointer::null, "Old should not contain raw null");
if (o == zpointer::null) {
guarantee(ZGeneration::young()->is_phase_mark_complete(), "Only possible when flip promoting");
guarantee(ZHeap::heap()->page(p)->is_allocating(), "Raw nulls only possible in allocating pages");
}
if (!z_is_null_relaxed(o)) {
if (ZPointer::is_mark_good(o)) {
// Even though the pointer is mark good, we can't verify that it should
Expand Down