Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2024-11-29 21:00:51 +08:00
commit c6517989ab
5 changed files with 2182 additions and 1362 deletions

View file

@ -7138,7 +7138,7 @@ JS_PUBLIC_API(bool)
js::gc::detail::CellIsMarkedGrayIfKnown(const Cell* cell)
{
MOZ_ASSERT(cell);
if (!cell->isTenured())
if (!cell || !cell->isTenured())
return false;
// We ignore the gray marking state of cells and return false in two cases: