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

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

Issue 2974403002: Revert "Moves the top_ and end_ words of the Scavenger into mutator thread." (Closed)
Patch Set: Created 3 years, 5 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 #define REUSABLE_HANDLE_INITIALIZERS(object) object##_handle_(NULL), 59 #define REUSABLE_HANDLE_INITIALIZERS(object) object##_handle_(NULL),
60 60
61 61
62 Thread::Thread(Isolate* isolate) 62 Thread::Thread(Isolate* isolate)
63 : BaseThread(false), 63 : BaseThread(false),
64 stack_limit_(0), 64 stack_limit_(0),
65 stack_overflow_flags_(0), 65 stack_overflow_flags_(0),
66 isolate_(NULL), 66 isolate_(NULL),
67 heap_(NULL), 67 heap_(NULL),
68 top_(0),
69 end_(0),
70 top_exit_frame_info_(0), 68 top_exit_frame_info_(0),
71 store_buffer_block_(NULL), 69 store_buffer_block_(NULL),
72 vm_tag_(0), 70 vm_tag_(0),
73 task_kind_(kUnknownTask), 71 task_kind_(kUnknownTask),
74 async_stack_trace_(StackTrace::null()), 72 async_stack_trace_(StackTrace::null()),
75 dart_stream_(NULL), 73 dart_stream_(NULL),
76 os_thread_(NULL), 74 os_thread_(NULL),
77 thread_lock_(new Monitor()), 75 thread_lock_(new Monitor()),
78 zone_(NULL), 76 zone_(NULL),
79 current_zone_capacity_(0), 77 current_zone_capacity_(0),
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 923
926 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { 924 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() {
927 if (thread() != NULL) { 925 if (thread() != NULL) {
928 OSThread* os_thread = thread()->os_thread(); 926 OSThread* os_thread = thread()->os_thread();
929 ASSERT(os_thread != NULL); 927 ASSERT(os_thread != NULL);
930 os_thread->EnableThreadInterrupts(); 928 os_thread->EnableThreadInterrupts();
931 } 929 }
932 } 930 }
933 931
934 } // namespace dart 932 } // 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