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 a6a75d4b01ffe538a3d2397e8a7e6f7e00de0b13..489cff4c102fdeedb43d0a3587898695aaf55b1e 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" |
@@ -565,6 +566,10 @@ void ThreadHeap::collectGarbage(BlinkGC::StackState stackState, BlinkGC::GCType |
ThreadHeap::reportMemoryUsageHistogram(); |
WTF::Partitions::reportMemoryUsageHistogram(); |
+ if (RuntimeEnabledFeatures::traceWrappablesEnabled()) { |
+ state->cleanTraceWrappersMarkingDeque(); |
+ } |
+ |
state->heap().postGC(gcType); |
state->heap().decommitCallbackStacks(); |
} |