Wait for cancelable task after tearing down the heap.

BUG=

Review URL: https://codereview.chromium.org/1462573002

Cr-Commit-Position: refs/heads/master@{#32093}
This commit is contained in:
mlippautz 2015-11-18 09:36:54 -08:00 committed by Commit bot
parent db867c2bd8
commit eb8a42383c

View File

@ -1921,11 +1921,11 @@ void Isolate::Deinit() {
delete basic_block_profiler_;
basic_block_profiler_ = NULL;
cancelable_task_manager()->CancelAndWait();
heap_.TearDown();
logger_->TearDown();
cancelable_task_manager()->CancelAndWait();
delete heap_profiler_;
heap_profiler_ = NULL;
delete cpu_profiler_;