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

Unified Diff: runtime/vm/isolate.cc

Issue 1340423005: Blind attempt to fix test crash on Windows (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 0178111d828f9057fcaefddda708e719450a1fa0..41b223fef84de6de97cd6c4150a65fe68a3fc47e 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1496,12 +1496,6 @@ void Isolate::LowLevelShutdown() {
HandleScope handle_scope(thread);
NoSafepointScope no_safepoint_scope;
- if (FLAG_compiler_stats
- && !ServiceIsolate::IsServiceIsolate(this)
- && (this != Dart::vm_isolate())) {
- OS::Print("%s", compiler_stats()->PrintToZone());
- }
-
// Notify exit listeners that this isolate is shutting down.
if (object_store() != NULL) {
NotifyExitListeners();
@@ -1577,6 +1571,13 @@ void Isolate::Shutdown() {
!ServiceIsolate::IsServiceIsolateDescendant(this)) {
CodeCoverage::Write(this);
}
+
+ // Write compiler stats data if enabled.
+ if (FLAG_compiler_stats
+ && !ServiceIsolate::IsServiceIsolateDescendant(this)
+ && (this != Dart::vm_isolate())) {
+ OS::Print("%s", compiler_stats()->PrintToZone());
+ }
}
// Remove this isolate from the list *before* we start tearing it down, to
« 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