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

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

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/thread.h ('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 #include "vm/thread.h" 5 #include "vm/thread.h"
6 6
7 #include "vm/compiler_stats.h" 7 #include "vm/compiler_stats.h"
8 #include "vm/dart_api_state.h" 8 #include "vm/dart_api_state.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 case kUnknownTask: 287 case kUnknownTask:
288 return "kUnknownTask"; 288 return "kUnknownTask";
289 case kMutatorTask: 289 case kMutatorTask:
290 return "kMutatorTask"; 290 return "kMutatorTask";
291 case kCompilerTask: 291 case kCompilerTask:
292 return "kCompilerTask"; 292 return "kCompilerTask";
293 case kSweeperTask: 293 case kSweeperTask:
294 return "kSweeperTask"; 294 return "kSweeperTask";
295 case kMarkerTask: 295 case kMarkerTask:
296 return "kMarkerTask"; 296 return "kMarkerTask";
297 case kFinalizerTask:
298 return "kFinalizerTask";
299 default: 297 default:
300 UNREACHABLE(); 298 UNREACHABLE();
301 return ""; 299 return "";
302 } 300 }
303 } 301 }
304 302
305 303
306 RawStackTrace* Thread::async_stack_trace() const { 304 RawStackTrace* Thread::async_stack_trace() const {
307 return async_stack_trace_; 305 return async_stack_trace_;
308 } 306 }
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 905
908 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { 906 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() {
909 if (thread() != NULL) { 907 if (thread() != NULL) {
910 OSThread* os_thread = thread()->os_thread(); 908 OSThread* os_thread = thread()->os_thread();
911 ASSERT(os_thread != NULL); 909 ASSERT(os_thread != NULL);
912 os_thread->EnableThreadInterrupts(); 910 os_thread->EnableThreadInterrupts();
913 } 911 }
914 } 912 }
915 913
916 } // namespace dart 914 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698