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

Unified Diff: src/isolate.cc

Issue 1132943007: Fixed various simulator-related space leaks. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a leak in ARM64 disassembler. Created 5 years, 7 months 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 | « src/arm64/simulator-arm64.cc ('k') | src/mips/simulator-mips.h » ('j') | 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 85666153016d71cbb47f59854f66cdde27ed7860..1b031f8a937559306d048d616e59f9955170ce2e 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2001,6 +2001,12 @@ Isolate::~Isolate() {
delete debug_;
debug_ = NULL;
+
+#if USE_SIMULATOR
+ Simulator::TearDown(simulator_i_cache_, simulator_redirection_);
+ simulator_i_cache_ = nullptr;
+ simulator_redirection_ = nullptr;
+#endif
}
« no previous file with comments | « src/arm64/simulator-arm64.cc ('k') | src/mips/simulator-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698