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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 9562045: Added stack overflow checks at backward branches in order to allow interrupting endless loops. Bett… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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
Index: runtime/vm/dart_api_impl_test.cc
===================================================================
--- runtime/vm/dart_api_impl_test.cc (revision 4847)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -3601,23 +3601,17 @@
void BusyLoop_start(uword unused) {
- // TODO(turnidge): Get rid of call to 'function' after interrupts
- // are checked on backward branches.
const char* kScriptChars =
"class Native {\n"
" static void markMainEntered() native 'MarkMainEntered';\n"
"}\n"
- "void function([foo='hi']) {\n"
- "}\n"
"\n"
"void main() {\n"
" Native.markMainEntered();\n"
- " while (true) {\n" // Infinite loop.
- " function();\n"
+ " while (true) {\n" // Infinite empty loop.
" }\n"
"}\n";
-
// Tell the other thread that shared_isolate is created.
Dart_Handle lib;
{

Powered by Google App Engine
This is Rietveld 408576698