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

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 2644903003: Implemented basic heap memory allocation tracking in MallocHooks using hooks registered with tcmall… (Closed)
Patch Set: Created 3 years, 11 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
Index: runtime/bin/gen_snapshot.cc
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
index 3ebc8fb986e70c8367b667b34bb975285007db68..d97f29ea59d2f9e265caa4ce108d077c0d9b84de 100644
--- a/runtime/bin/gen_snapshot.cc
+++ b/runtime/bin/gen_snapshot.cc
@@ -383,6 +383,7 @@ static void WriteSnapshotFile(const char* filename,
Log::PrintErr("Error: Unable to write snapshot file: %s\n\n", filename);
Dart_ExitScope();
Dart_ShutdownIsolate();
+ Dart_Cleanup();
exit(kErrorExitCode);
}
if (!file->WriteFully(buffer, size)) {
« no previous file with comments | « runtime/bin/BUILD.gn ('k') | runtime/vm/dart.cc » ('j') | runtime/vm/malloc_hooks_unsupported.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698