forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1341326 - Set stack limit and stack size properly for helper thre…
…ads, r=jandem. --HG-- extra : rebase_source : 31566501efe68ba25f88c50813f36d05c3bf2ab3
- Loading branch information
1 parent
334243e
commit 1938ed4
Showing
6 changed files
with
25 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
if (helperThreadCount() == 0) | ||
quit(); | ||
function eval(source) { | ||
offThreadCompileModule(source); | ||
} | ||
var N = 10000; | ||
var left = repeat_str('(1&', N); | ||
var right = repeat_str(')', N); | ||
var str = 'actual = '.concat(left, '1', right, ';'); | ||
eval(str); | ||
function repeat_str(str, repeat_count) { | ||
var arr = new Array(--repeat_count); | ||
while (repeat_count != 0) arr[--repeat_count] = str; | ||
return str.concat.apply(str, arr); | ||
} |
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
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