Commit 0f08d35b authored by Chris Toshok's avatar Chris Toshok

fix null check

parent 4c287215
......@@ -229,7 +229,7 @@ bool GCVisitor::isValid(void* p) {
void GCVisitor::visit(void* p) {
if ((uintptr_t)p < SMALL_ARENA_START || (uintptr_t)p >= HUGE_ARENA_START + ARENA_SIZE) {
ASSERT(isNonheapRoot(p), "%p", p);
ASSERT(!p || isNonheapRoot(p), "%p", p);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment