[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}
This commit is contained in:
mlippautz 2016-12-07 06:04:08 -08:00 committed by Commit bot
parent ae1c5746f2
commit fd12750209
2 changed files with 2 additions and 0 deletions

View File

@ -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. ================================================

View File

@ -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;