We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 848c0c7 commit 7cd3d7fCopy full SHA for 7cd3d7f
src/hotspot/share/gc/z/zVerify.cpp
@@ -130,7 +130,10 @@ static void z_verify_root_oop_object(zaddress addr, void* p) {
130
131
static void z_verify_old_oop(zpointer* p) {
132
const zpointer o = *p;
133
- assert(o != zpointer::null, "Old should not contain raw null");
+ if (o == zpointer::null) {
134
+ guarantee(ZGeneration::young()->is_phase_mark_complete(), "Only possible when flip promoting");
135
+ guarantee(ZHeap::heap()->page(p)->is_allocating(), "Raw nulls only possible in allocating pages");
136
+ }
137
if (!z_is_null_relaxed(o)) {
138
if (ZPointer::is_mark_good(o)) {
139
// Even though the pointer is mark good, we can't verify that it should
0 commit comments