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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp

Issue 2610853002: [wrapper-tracing] Enable cleanup and invalidating on WorkerBackingThread (Closed)
Patch Set: Address comment Created 3 years, 11 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
Index: third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
index 3f79258bcb29de8bf74128bf6f05d0cefe2d5daf..23cf3ff269289c3f525af6eed60bf5b304fee5ff 100644
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
@@ -73,7 +73,9 @@ void WorkerBackingThread::initialize() {
WTF::makeUnique<V8IsolateInterruptor>(m_isolate);
ThreadState::current()->addInterruptor(std::move(interruptor));
ThreadState::current()->registerTraceDOMWrappers(
- m_isolate, V8GCController::traceDOMWrappers, nullptr, nullptr);
+ m_isolate, V8GCController::traceDOMWrappers,
+ ScriptWrappableVisitor::invalidateDeadObjectsInMarkingDeque,
+ ScriptWrappableVisitor::performCleanup);
if (RuntimeEnabledFeatures::v8IdleTasksEnabled())
V8PerIsolateData::enableIdleTasks(
m_isolate, WTF::wrapUnique(new V8IdleTaskRunner(
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698