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

Unified Diff: runtime/vm/dart_entry.cc

Issue 1518253002: No gcc, please don't optimize away the stack overflow check. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry.cc
diff --git a/runtime/vm/dart_entry.cc b/runtime/vm/dart_entry.cc
index 4ae6851f5b194244eee3d29b7087084a557a50fc..de926bfe9271461af65b65be583845ba953517d2 100644
--- a/runtime/vm/dart_entry.cc
+++ b/runtime/vm/dart_entry.cc
@@ -168,9 +168,9 @@ RawObject* DartEntry::InvokeClosure(const Array& arguments,
function ^= cls.LookupDynamicFunction(getter_name);
if (!function.IsNull()) {
Isolate* isolate = Isolate::Current();
- uword c_stack_pos = Isolate::GetCurrentStackPointer();
- uword c_stack_limit = OSThread::Current()->stack_base() -
- OSThread::GetSpecifiedStackSize();
+ volatile uword c_stack_pos = Isolate::GetCurrentStackPointer();
+ volatile uword c_stack_limit = OSThread::Current()->stack_base() -
+ OSThread::GetSpecifiedStackSize();
#if !defined(USING_SIMULATOR)
ASSERT(c_stack_limit == isolate->saved_stack_limit());
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698