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

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

Issue 354063004: Allow StackFrameIterator to be used on a different thread than the isolate whose stack frames are b… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_OS_WINDOWS) 6 #if defined(TARGET_OS_WINDOWS)
7 7
8 #include "vm/os.h" 8 #include "vm/os.h"
9 #include "vm/vtune.h" 9 #include "vm/vtune.h"
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 156
157 uword OS::GetStackSizeLimit() { 157 uword OS::GetStackSizeLimit() {
158 // TODO(ager): Can you programatically determine the actual stack 158 // TODO(ager): Can you programatically determine the actual stack
159 // size limit on Windows? The 2MB limit is set at link time. Maybe 159 // size limit on Windows? The 2MB limit is set at link time. Maybe
160 // that value should be propagated here? 160 // that value should be propagated here?
161 return 2 * MB; 161 return 2 * MB;
162 } 162 }
163 163
164 164
165 bool OS::AllowStackFrameIteratorFromAnotherThread() {
166 return true;
167 }
168
169
165 int OS::NumberOfAvailableProcessors() { 170 int OS::NumberOfAvailableProcessors() {
166 SYSTEM_INFO info; 171 SYSTEM_INFO info;
167 GetSystemInfo(&info); 172 GetSystemInfo(&info);
168 return info.dwNumberOfProcessors; 173 return info.dwNumberOfProcessors;
169 } 174 }
170 175
171 176
172 void OS::Sleep(int64_t millis) { 177 void OS::Sleep(int64_t millis) {
173 ::Sleep(millis); 178 ::Sleep(millis);
174 } 179 }
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 } 335 }
331 336
332 337
333 void OS::Exit(int code) { 338 void OS::Exit(int code) {
334 exit(code); 339 exit(code);
335 } 340 }
336 341
337 } // namespace dart 342 } // namespace dart
338 343
339 #endif // defined(TARGET_OS_WINDOWS) 344 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698