summaryrefslogtreecommitdiffstats
path: root/js/src/jsgc.cpp
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2019-04-30 15:07:04 +0300
committerGitHub <noreply@github.com>2019-04-30 15:07:04 +0300
commit2ec2389d7f887d263b76e43af1d40e8b529db40e (patch)
tree41f206fe01772ea8ed4379070e88ef94381599c8 /js/src/jsgc.cpp
parent31ea8c7e934bd4dd78ef44dc9dfd47bd27bdf0a3 (diff)
downloadUXP-2ec2389d7f887d263b76e43af1d40e8b529db40e.tar
UXP-2ec2389d7f887d263b76e43af1d40e8b529db40e.tar.gz
UXP-2ec2389d7f887d263b76e43af1d40e8b529db40e.tar.lz
UXP-2ec2389d7f887d263b76e43af1d40e8b529db40e.tar.xz
UXP-2ec2389d7f887d263b76e43af1d40e8b529db40e.zip
Braces and one more typo fix for comment
Diffstat (limited to 'js/src/jsgc.cpp')
-rw-r--r--js/src/jsgc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/jsgc.cpp b/js/src/jsgc.cpp
index f528b2d70..194468c5d 100644
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -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)