Commit fd127502 authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Clear cached wrappers upon aborting incremental marking

BUG=chromium:468240,chromium:668060

Review-Url: https://codereview.chromium.org/2551973005
Cr-Commit-Position: refs/heads/master@{#41553}
parent ae1c5746
......@@ -1224,6 +1224,7 @@ class Heap {
EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; }
size_t wrappers_to_trace() { return wrappers_to_trace_.size(); }
void clear_wrappers_to_trace() { wrappers_to_trace_.clear(); }
// ===========================================================================
// External string table API. ================================================
......
......@@ -800,6 +800,7 @@ void MarkCompactCollector::Prepare() {
AbortCompaction();
if (heap_->UsingEmbedderHeapTracer()) {
heap_->embedder_heap_tracer()->AbortTracing();
heap_->clear_wrappers_to_trace();
}
marking_deque()->Clear();
was_marked_incrementally_ = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment