mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Braces and one more typo fix for comment
This commit is contained in:
parent
b584107330
commit
b11e5bc2d3
2 changed files with 5 additions and 3 deletions
|
|
@ -1527,8 +1527,9 @@ inline void
|
|||
ArenaLists::prepareForIncrementalGC()
|
||||
{
|
||||
purge();
|
||||
for (auto i : AllAllocKinds())
|
||||
for (auto i : AllAllocKinds()) {
|
||||
arenaLists[i].moveCursorToEnd();
|
||||
}
|
||||
}
|
||||
|
||||
/* Compacting GC */
|
||||
|
|
@ -3577,7 +3578,7 @@ ShouldCollectZone(Zone* zone, JS::gcreason::Reason reason)
|
|||
if (reason != JS::gcreason::COMPARTMENT_REVIVED)
|
||||
return zone->isGCScheduled();
|
||||
|
||||
// If we are repeating a GC becuase we noticed dead compartments haven't
|
||||
// If we are repeating a GC because we noticed dead compartments haven't
|
||||
// been collected, then only collect zones containing those compartments.
|
||||
for (CompartmentsInZoneIter comp(zone); !comp.done(); comp.next()) {
|
||||
if (comp->scheduledForDestruction)
|
||||
|
|
|
|||
|
|
@ -456,8 +456,9 @@ class ArenaList {
|
|||
}
|
||||
|
||||
void moveCursorToEnd() {
|
||||
while (!isCursorAtEnd())
|
||||
while (!isCursorAtEnd()) {
|
||||
cursorp_ = &(*cursorp_)->next;
|
||||
}
|
||||
}
|
||||
|
||||
// This can return nullptr.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue