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

Unified Diff: vm/isolate.cc

Issue 10544170: Have the stack overflow code use the correct stack size set by the platform/thread.h (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/isolate.cc
===================================================================
--- vm/isolate.cc (revision 8702)
+++ vm/isolate.cc (working copy)
@@ -254,7 +254,8 @@
// TODO(5411455): Use flag to override default value and Validate the
// stack size by querying OS.
uword Isolate::GetSpecifiedStackSize() {
- uword stack_size = Isolate::kDefaultStackSize - Isolate::kStackSizeBuffer;
+ ASSERT(Isolate::kStackSizeBuffer < Thread::GetMaxStackSize());
+ uword stack_size = Thread::GetMaxStackSize() - Isolate::kStackSizeBuffer;
return stack_size;
}
« no previous file with comments | « vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698