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

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

Issue 2951333002: Moves the top_ and end_ words of the Scavenger into mutator thread. (Closed)
Patch Set: Removes the ZeroSizeScavenger test. Proper testing requires a second vm isolate. 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),
68 top_exit_frame_info_(0), 70 top_exit_frame_info_(0),
69 store_buffer_block_(NULL), 71 store_buffer_block_(NULL),
70 vm_tag_(0), 72 vm_tag_(0),
71 task_kind_(kUnknownTask), 73 task_kind_(kUnknownTask),
72 async_stack_trace_(StackTrace::null()), 74 async_stack_trace_(StackTrace::null()),
73 dart_stream_(NULL), 75 dart_stream_(NULL),
74 os_thread_(NULL), 76 os_thread_(NULL),
75 thread_lock_(new Monitor()), 77 thread_lock_(new Monitor()),
76 zone_(NULL), 78 zone_(NULL),
77 current_zone_capacity_(0), 79 current_zone_capacity_(0),
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 925
924 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { 926 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() {
925 if (thread() != NULL) { 927 if (thread() != NULL) {
926 OSThread* os_thread = thread()->os_thread(); 928 OSThread* os_thread = thread()->os_thread();
927 ASSERT(os_thread != NULL); 929 ASSERT(os_thread != NULL);
928 os_thread->EnableThreadInterrupts(); 930 os_thread->EnableThreadInterrupts();
929 } 931 }
930 } 932 }
931 933
932 } // namespace dart 934 } // 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