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

Side by Side Diff: runtime/vm/thread_registry.h

Issue 2992753002: Prepares allocation for proper sync with mutator and bg threads. (Closed)
Patch Set: Adds thread locking to functions that iterate over threads Created 3 years, 4 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 unified diff | Download patch
« runtime/vm/scavenger.cc ('K') | « runtime/vm/scavenger.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_VM_THREAD_REGISTRY_H_ 5 #ifndef RUNTIME_VM_THREAD_REGISTRY_H_
6 #define RUNTIME_VM_THREAD_REGISTRY_H_ 6 #define RUNTIME_VM_THREAD_REGISTRY_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // on the same thread. 72 // on the same thread.
73 // We probably need a mechanism to return to the specific thread only 73 // We probably need a mechanism to return to the specific thread only
74 // for these specific cases. We should also determine if the embedder 74 // for these specific cases. We should also determine if the embedder
75 // should allow exiting an isolate with live state in zones/handles in 75 // should allow exiting an isolate with live state in zones/handles in
76 // which case a new API for returning to the specific thread needs to be 76 // which case a new API for returning to the specific thread needs to be
77 // added. 77 // added.
78 Thread* mutator_thread_; 78 Thread* mutator_thread_;
79 79
80 friend class Isolate; 80 friend class Isolate;
81 friend class SafepointHandler; 81 friend class SafepointHandler;
82 friend class Scavenger;
82 DISALLOW_COPY_AND_ASSIGN(ThreadRegistry); 83 DISALLOW_COPY_AND_ASSIGN(ThreadRegistry);
83 }; 84 };
84 85
85 } // namespace dart 86 } // namespace dart
86 87
87 #endif // RUNTIME_VM_THREAD_REGISTRY_H_ 88 #endif // RUNTIME_VM_THREAD_REGISTRY_H_
OLDNEW
« runtime/vm/scavenger.cc ('K') | « runtime/vm/scavenger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698