Commit 41b5c8d0 authored by Dominik Inführ's avatar Dominik Inführ Committed by Commit Bot

[heap] Reset time_to_collection_scope_ on TearDown

Scope might still be in progress and needs to be closed when starting
tear down. There will be no GC after starting tear down anymore.

Bug: v8:11022, v8:10315
Change-Id: I50ea02b13b84ef4fbbc08985ca9e25e0b0ec856d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2470572Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70507}
parent 67bae938
...@@ -17,6 +17,7 @@ void CollectionBarrier::ResumeThreadsAwaitingCollection() { ...@@ -17,6 +17,7 @@ void CollectionBarrier::ResumeThreadsAwaitingCollection() {
void CollectionBarrier::ShutdownRequested() { void CollectionBarrier::ShutdownRequested() {
base::MutexGuard guard(&mutex_); base::MutexGuard guard(&mutex_);
time_to_collection_scope_.reset();
state_.store(RequestState::kShutdown); state_.store(RequestState::kShutdown);
cond_.NotifyAll(); cond_.NotifyAll();
} }
......
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