Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Unified Diff: third_party/WebKit/Source/platform/heap/ThreadState.cpp

Issue 2682933003: Remove a thread-local termination GC (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
index a656dfecef2e02a9c2983e0263dc42c4602ed4d9..30eca8745599191c39d7c463495a70e0e1bf7917 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -244,7 +244,8 @@ void ThreadState::runTerminationGC() {
int currentCount = getPersistentRegion()->numberOfPersistents();
ASSERT(currentCount >= 0);
while (currentCount != oldCount) {
- collectGarbageForTerminatingThread();
+ collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep,
sof 2017/02/08 11:49:47 We're unnecessarily locking CTP access by doing th
haraken 2017/02/08 12:00:10 Added BlinkGC::ThreadTerminationGC. This prevents
+ BlinkGC::PreciseGC);
// Release the thread-local static persistents that were
// instantiated while running the termination GC.
releaseStaticPersistentNodes();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698