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

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

Issue 2084933002: Implement wrapper tracing verifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 6156652cf87b70bd87ccab6fdab04eaecdfd74e6..b7bd6efe2438057fd856f5efea993984e45d7c93 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -32,6 +32,7 @@
#include "base/sys_info.h"
#include "platform/Histogram.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/TraceEvent.h"
#include "platform/heap/BlinkGCMemoryDumpProvider.h"
@@ -570,6 +571,10 @@ void ThreadHeap::collectGarbage(BlinkGC::StackState stackState, BlinkGC::GCType
ThreadHeap::reportMemoryUsageHistogram();
WTF::Partitions::reportMemoryUsageHistogram();
+ if (RuntimeEnabledFeatures::traceWrappablesEnabled()) {
+ state->invalidateDeadObjectsInWrappersMarkingDeque();
haraken 2016/06/22 15:43:12 Why do we need this change?
Marcel Hlopko 2016/06/23 09:09:13 We don't. Git rebase hates me :)
+ }
+
state->heap().postGC(gcType);
state->heap().decommitCallbackStacks();
}

Powered by Google App Engine
This is Rietveld 408576698