mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
903519 - Remove verifier assumption that only objects are in the nursery
903519 - Remove verifier assumption that only objects are in the nursery. This is only relevant after 55 verifier.
This commit is contained in:
parent
b19ceed80f
commit
6292bee1ed
1 changed files with 9 additions and 2 deletions
|
|
@ -532,8 +532,15 @@ CheckHeapTracer::onChild(const JS::GCCellPtr& thing)
|
|||
return;
|
||||
|
||||
// Don't trace into GC in zones being used by helper threads.
|
||||
Zone* zone = thing.is<JSObject>() ? thing.as<JSObject>().zone() : cell->asTenured().zone();
|
||||
if (zone->group() && zone->group()->usedByHelperThread())
|
||||
Zone* zone;
|
||||
if (thing.is<JSObject>())
|
||||
zone = thing.as<JSObject>().zone();
|
||||
else if (thing.is<JSString>())
|
||||
zone = thing.as<JSString>().zone();
|
||||
else
|
||||
zone = cell->asTenured().zone();
|
||||
|
||||
if (zone->group() && zone->group()->usedByHelperThread)
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue