| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-479381.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 479381; |
| 9 |
var summary = 'Do not crash @ js_FinalizeStringRT with multi-threads.'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
test(); |
| 16 |
|
| 17 |
|
| 18 |
function test() |
| 19 |
{ |
| 20 |
enterFunc ('test'); |
| 21 |
printBugNumber(BUGNUMBER); |
| 22 |
printStatus (summary); |
| 23 |
|
| 24 |
if (typeof gczeal != 'function' || typeof scatter != 'function') |
| 25 |
{ |
| 26 |
print(expect = actual = 'Test skipped: requires mulithreads'); |
| 27 |
} |
| 28 |
else |
| 29 |
{ |
| 30 |
expect = actual = 'No Crash'; |
| 31 |
|
| 32 |
gczeal(2); |
| 33 |
|
| 34 |
function f() { |
| 35 |
var s; |
| 36 |
for (var i = 0; i < 9999; i++) |
| 37 |
s = 'a' + String(i)[3] + 'b'; |
| 38 |
return s; |
| 39 |
} |
| 40 |
|
| 41 |
print(scatter([f, f, f, f])); |
| 42 |
} |
| 43 |
|
| 44 |
reportCompare(expect, actual, summary); |
| 45 |
|
| 46 |
exitFunc ('test'); |
| 47 |
} |