summaryrefslogtreecommitdiffstats
path: root/js/src/gc/RootMarking.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2019-04-30 14:11:17 +0000
committerGitHub <noreply@github.com>2019-04-30 14:11:17 +0000
commit871b926f635836d6a187534f6a6ad5b2bb30b27d (patch)
tree41f206fe01772ea8ed4379070e88ef94381599c8 /js/src/gc/RootMarking.cpp
parentcd296c598a587b58a0e2a579c9be5aa255669829 (diff)
parent2ec2389d7f887d263b76e43af1d40e8b529db40e (diff)
downloadUXP-871b926f635836d6a187534f6a6ad5b2bb30b27d.tar
UXP-871b926f635836d6a187534f6a6ad5b2bb30b27d.tar.gz
UXP-871b926f635836d6a187534f6a6ad5b2bb30b27d.tar.lz
UXP-871b926f635836d6a187534f6a6ad5b2bb30b27d.tar.xz
UXP-871b926f635836d6a187534f6a6ad5b2bb30b27d.zip
Merge pull request #1065 from win7-7/Improve-dead-compartment-collection
Improve dead compartment collection
Diffstat (limited to 'js/src/gc/RootMarking.cpp')
-rw-r--r--js/src/gc/RootMarking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/gc/RootMarking.cpp b/js/src/gc/RootMarking.cpp
index 93264084b..f5969bc1f 100644
--- a/js/src/gc/RootMarking.cpp
+++ b/js/src/gc/RootMarking.cpp
@@ -478,6 +478,7 @@ js::gc::GCRuntime::bufferGrayRoots()
for (GCZonesIter zone(rt); !zone.done(); zone.next())
MOZ_ASSERT(zone->gcGrayRoots.empty());
+ gcstats::AutoPhase ap(stats, gcstats::PHASE_BUFFER_GRAY_ROOTS);
BufferGrayRootsTracer grayBufferer(rt);
if (JSTraceDataOp op = grayRootTracer.op)
@@ -540,4 +541,3 @@ GCRuntime::resetBufferedGrayRoots() const
for (GCZonesIter zone(rt); !zone.done(); zone.next())
zone->gcGrayRoots.clearAndFree();
}
-