-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
function interruption_test() | ||
function interruptions() | ||
|
||
jleval println("Hit Ctrl-C to stop me!") | ||
|
||
% this one causes crashes (sometimes?) | ||
jleval 'global x = 0; while(true); global x += 1; if x%10000 == 0; println(x); end; yield(); end' | ||
|
||
% this one doesn't cause any problems | ||
% this one requires the ENABLE_INTERRUPTS flag to be set to `true` | ||
% jleval 'global x = 0; while(true); global x += 1; yield(); end' | ||
|
||
% this one isn't interruptable, as it never yields | ||
% jleval 'global x = 0; while(true); global x += 1; end' | ||
|
||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters