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

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

Issue 2043033002: Trace ScriptWrappableVisitor.m_markingDeque by oilpan gc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix callers of registerTraceDOMWrappers Created 4 years, 6 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/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 e9caf851f76ad66656e38324a0ca0ec0c18fdec2..ea1e739427a360ceacfdb1548eee3506fb36c26f 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -32,6 +32,7 @@
#include "base/trace_event/process_memory_dump.h"
#include "platform/Histogram.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/TraceEvent.h"
#include "platform/heap/BlinkGCMemoryDumpProvider.h"
@@ -98,6 +99,7 @@ ThreadState::ThreadState(bool perThreadHeapEnabled)
, m_gcState(NoGCScheduled)
, m_isolate(nullptr)
, m_traceDOMWrappers(nullptr)
+ , m_invalidateDeadObjectsInWrappersMarkingDeque(nullptr)
#if defined(ADDRESS_SANITIZER)
, m_asanFakeStack(__asan_get_current_fake_stack())
#endif
@@ -959,6 +961,11 @@ void ThreadState::preGC()
void ThreadState::postGC(BlinkGC::GCType gcType)
{
+ if (RuntimeEnabledFeatures::traceWrappablesEnabled()
+ && m_invalidateDeadObjectsInWrappersMarkingDeque) {
+ m_invalidateDeadObjectsInWrappersMarkingDeque(m_isolate);
+ }
+
ASSERT(isInGC());
for (int i = 0; i < BlinkGC::NumberOfArenas; i++)
m_arenas[i]->prepareForSweep();
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.h ('k') | third_party/WebKit/Source/platform/testing/RunAllTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698