summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/src/gc/Allocator.cpp2
-rw-r--r--js/src/gc/Marking.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/src/gc/Allocator.cpp b/js/src/gc/Allocator.cpp
index 115a131127..8ecdd49a5b 100644
--- a/js/src/gc/Allocator.cpp
+++ b/js/src/gc/Allocator.cpp
@@ -254,7 +254,7 @@ GCRuntime::checkIncrementalZoneState(ExclusiveContext* cx, T* t)
return;
Zone* zone = cx->asJSContext()->zone();
- MOZ_ASSERT_IF(t && zone->wasGCStarted() && (zone->isGCMarking() || zone->isGCSweeping()),
+ MOZ_ASSERT_IF(t && zone->wasGCStarted() && (zone->shouldMarkInZone() || zone->isGCSweeping()),
t->asTenured().arena()->allocatedDuringIncremental);
#endif
}
diff --git a/js/src/gc/Marking.cpp b/js/src/gc/Marking.cpp
index bf40f0bdda..42c872a1da 100644
--- a/js/src/gc/Marking.cpp
+++ b/js/src/gc/Marking.cpp
@@ -730,7 +730,7 @@ GCMarker::markImplicitEdgesHelper(T markedThing)
return;
Zone* zone = gc::TenuredCell::fromPointer(markedThing)->zone();
- MOZ_ASSERT(zone->isGCMarking());
+ MOZ_ASSERT(zone->shouldMarkInZone());
MOZ_ASSERT(!zone->isGCSweeping());
auto p = zone->gcWeakKeys.get(JS::GCCellPtr(markedThing));