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

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

Issue 2809863002: Remove background finalization. (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/thread.cc » ('j') | 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_H_ 5 #ifndef RUNTIME_VM_THREAD_H_
6 #define RUNTIME_VM_THREAD_H_ 6 #define RUNTIME_VM_THREAD_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // must currently be called manually (issue 23474). 154 // must currently be called manually (issue 23474).
155 class Thread : public BaseThread { 155 class Thread : public BaseThread {
156 public: 156 public:
157 // The kind of task this thread is performing. Sampled by the profiler. 157 // The kind of task this thread is performing. Sampled by the profiler.
158 enum TaskKind { 158 enum TaskKind {
159 kUnknownTask = 0x0, 159 kUnknownTask = 0x0,
160 kMutatorTask = 0x1, 160 kMutatorTask = 0x1,
161 kCompilerTask = 0x2, 161 kCompilerTask = 0x2,
162 kSweeperTask = 0x4, 162 kSweeperTask = 0x4,
163 kMarkerTask = 0x8, 163 kMarkerTask = 0x8,
164 kFinalizerTask = 0x10,
165 }; 164 };
166 // Converts a TaskKind to its corresponding C-String name. 165 // Converts a TaskKind to its corresponding C-String name.
167 static const char* TaskKindToCString(TaskKind kind); 166 static const char* TaskKindToCString(TaskKind kind);
168 167
169 ~Thread(); 168 ~Thread();
170 169
171 // The currently executing thread, or NULL if not yet initialized. 170 // The currently executing thread, or NULL if not yet initialized.
172 static Thread* Current() { 171 static Thread* Current() {
173 BaseThread* thread = OSThread::GetCurrentTLS(); 172 BaseThread* thread = OSThread::GetCurrentTLS();
174 if (thread == NULL || thread->is_os_thread()) { 173 if (thread == NULL || thread->is_os_thread()) {
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 // Disable thread interrupts. 818 // Disable thread interrupts.
820 class DisableThreadInterruptsScope : public StackResource { 819 class DisableThreadInterruptsScope : public StackResource {
821 public: 820 public:
822 explicit DisableThreadInterruptsScope(Thread* thread); 821 explicit DisableThreadInterruptsScope(Thread* thread);
823 ~DisableThreadInterruptsScope(); 822 ~DisableThreadInterruptsScope();
824 }; 823 };
825 824
826 } // namespace dart 825 } // namespace dart
827 826
828 #endif // RUNTIME_VM_THREAD_H_ 827 #endif // RUNTIME_VM_THREAD_H_
OLDNEW
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698