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

Unified Diff: runtime/vm/profiler.cc

Issue 65983005: Post landing fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | runtime/vm/profiler_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index 24342d5c0da8980e6e64e63ac318822faeb87172..66818e3b6244dd757cc7d4922a16da7d3ede722c 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -201,6 +201,10 @@ void ProfilerManager::ResizeIsolates(intptr_t new_capacity) {
void ProfilerManager::AddIsolate(Isolate* isolate) {
+ if (isolates_ == NULL) {
+ // We are shutting down.
+ return;
+ }
// Must be called with monitor_ locked.
if (isolates_size_ == isolates_capacity_) {
ResizeIsolates(isolates_capacity_ == 0 ? 16 : isolates_capacity_ * 2);
« no previous file with comments | « no previous file | runtime/vm/profiler_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698