Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: src/isolate.cc

Issue 1462573002: Wait for cancelable task after tearing down the heap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 68a6745d56b57cf77d12fa789d2d6392adbba568..5bb2311efbec26b5fbb56df8a750aca90d1844f7 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -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_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698