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

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

Issue 83623004: Guard against an isolate being scheduled twice (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/profiler.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 VM_PROFILER_H_ 5 #ifndef VM_PROFILER_H_
6 #define VM_PROFILER_H_ 6 #define VM_PROFILER_H_
7 7
8 #include "platform/hashmap.h" 8 #include "platform/hashmap.h"
9 #include "platform/thread.h" 9 #include "platform/thread.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 23 matching lines...) Expand all
34 private: 34 private:
35 static const intptr_t kMaxProfiledIsolates = 4096; 35 static const intptr_t kMaxProfiledIsolates = 4096;
36 static bool initialized_; 36 static bool initialized_;
37 static bool shutdown_; 37 static bool shutdown_;
38 static Monitor* monitor_; 38 static Monitor* monitor_;
39 39
40 static Isolate** isolates_; 40 static Isolate** isolates_;
41 static intptr_t isolates_capacity_; 41 static intptr_t isolates_capacity_;
42 static intptr_t isolates_size_; 42 static intptr_t isolates_size_;
43 43
44 static void ScheduleIsolateHelper(Isolate* isolate);
44 static void ResizeIsolates(intptr_t new_capacity); 45 static void ResizeIsolates(intptr_t new_capacity);
45 static void AddIsolate(Isolate* isolate); 46 static void AddIsolate(Isolate* isolate);
46 static intptr_t FindIsolate(Isolate* isolate); 47 static intptr_t FindIsolate(Isolate* isolate);
47 static void RemoveIsolate(intptr_t i); 48 static void RemoveIsolate(intptr_t i);
48 49
49 // Returns the microseconds until the next live timer fires. 50 // Returns the microseconds until the next live timer fires.
50 static int64_t SampleAndRescheduleIsolates(int64_t current_time); 51 static int64_t SampleAndRescheduleIsolates(int64_t current_time);
51 static void FreeIsolateProfilingData(Isolate* isolate); 52 static void FreeIsolateProfilingData(Isolate* isolate);
52 static void ThreadMain(uword parameters); 53 static void ThreadMain(uword parameters);
53 }; 54 };
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const uintptr_t original_pc_; 191 const uintptr_t original_pc_;
191 const uintptr_t original_fp_; 192 const uintptr_t original_fp_;
192 const uintptr_t original_sp_; 193 const uintptr_t original_sp_;
193 uintptr_t lower_bound_; 194 uintptr_t lower_bound_;
194 }; 195 };
195 196
196 197
197 } // namespace dart 198 } // namespace dart
198 199
199 #endif // VM_PROFILER_H_ 200 #endif // VM_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698