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

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

Issue 2901103004: Experimental code to detect transitive closure of parser code which causes new-space allocations
Patch Set: Created 3 years, 6 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #endif // defined(DEBUG) 57 #endif // defined(DEBUG)
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 inside_parser_(false),
67 heap_(NULL), 68 heap_(NULL),
68 top_exit_frame_info_(0), 69 top_exit_frame_info_(0),
69 store_buffer_block_(NULL), 70 store_buffer_block_(NULL),
70 vm_tag_(0), 71 vm_tag_(0),
71 task_kind_(kUnknownTask), 72 task_kind_(kUnknownTask),
72 async_stack_trace_(StackTrace::null()), 73 async_stack_trace_(StackTrace::null()),
73 dart_stream_(NULL), 74 dart_stream_(NULL),
74 os_thread_(NULL), 75 os_thread_(NULL),
75 thread_lock_(new Monitor()), 76 thread_lock_(new Monitor()),
76 zone_(NULL), 77 zone_(NULL),
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 924
924 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { 925 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() {
925 if (thread() != NULL) { 926 if (thread() != NULL) {
926 OSThread* os_thread = thread()->os_thread(); 927 OSThread* os_thread = thread()->os_thread();
927 ASSERT(os_thread != NULL); 928 ASSERT(os_thread != NULL);
928 os_thread->EnableThreadInterrupts(); 929 os_thread->EnableThreadInterrupts();
929 } 930 }
930 } 931 }
931 932
932 } // namespace dart 933 } // 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