mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1084651 - Part 4b: Adjust and clarify some tests using gcslice(0). r=wmccloskey
This commit is contained in:
parent
1238f8fb1c
commit
9752c431ab
@ -15,12 +15,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1027221
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
var x = "x";
|
||||
// Trigger some incremental gc
|
||||
SpecialPowers.Cu.getJSTestingFunctions().gcslice(0);
|
||||
SpecialPowers.Cu.getJSTestingFunctions().gcslice(1);
|
||||
|
||||
// Kick off a worker that uses this same atom
|
||||
var w = new Worker("data:text/plain,Promise.resolve('x').then(function() { postMessage(1); });");
|
||||
// Maybe trigger some more incremental gc
|
||||
SpecialPowers.Cu.getJSTestingFunctions().gcslice(0);
|
||||
SpecialPowers.Cu.getJSTestingFunctions().gcslice(1);
|
||||
|
||||
w.onmessage = function() {
|
||||
ok(true, "Got here");
|
||||
|
@ -28,7 +28,7 @@ gcPreserveCode();
|
||||
try {
|
||||
mjitChunkLimit(1);
|
||||
} catch(exc1) {}
|
||||
gcslice(0);
|
||||
gcslice(1);
|
||||
m(1);
|
||||
gc();
|
||||
m(2);
|
||||
|
@ -3,4 +3,4 @@
|
||||
//
|
||||
|
||||
gc();
|
||||
evaluate("gcslice(0);");
|
||||
evaluate("gcslice(1);");
|
||||
|
@ -5,8 +5,8 @@
|
||||
function printBugNumber (num) {
|
||||
BUGNUMBER = num;
|
||||
}
|
||||
gcslice(0)
|
||||
gcslice(1)
|
||||
schedulegc(this);
|
||||
gcslice(1);
|
||||
gcslice(2);
|
||||
var BUGNUMBER = ("one");
|
||||
printBugNumber();
|
||||
|
@ -1,6 +1,6 @@
|
||||
var g1 = newGlobal();
|
||||
schedulegc(g1);
|
||||
gcslice(0);
|
||||
gcslice(1);
|
||||
function testEq(b) {
|
||||
var a = deserialize(serialize(b));
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ function gen()
|
||||
yield 1;
|
||||
local = null;
|
||||
gc();
|
||||
gcslice(0);
|
||||
gcslice(0); // Start IGC, but don't mark anything.
|
||||
yield 2;
|
||||
}
|
||||
|
||||
|
@ -12,5 +12,5 @@ function recur(n)
|
||||
}
|
||||
|
||||
validategc(false);
|
||||
gcslice(0);
|
||||
gcslice(1);
|
||||
recur(10);
|
||||
|
@ -11,8 +11,8 @@ expect = "generator function foo returns a value";
|
||||
actual = (function (j) {}).message;
|
||||
reportCompare(expect, actual, summary + ": 1");
|
||||
reportCompare(expect, actual, summary + ": 2");
|
||||
gcslice(0);
|
||||
gcslice(1);
|
||||
gcslice(2);
|
||||
gc();
|
||||
var strings = [ (0), ];
|
||||
for (var i = 0; i < strings.length; i++)
|
||||
|
@ -1,6 +1,6 @@
|
||||
if (this.hasOwnProperty('Intl')) {
|
||||
gc();
|
||||
gcslice(0);
|
||||
gcslice(1);
|
||||
var thisValues = [ "x" ];
|
||||
thisValues.forEach(function (value) {
|
||||
var format = Intl.DateTimeFormat.call(value);
|
||||
|
@ -1,5 +1,5 @@
|
||||
gc();
|
||||
gcslice(0);
|
||||
gcslice(1);
|
||||
function isClone(a, b) {
|
||||
var rmemory = new WeakMap();
|
||||
rmemory.set(a,b);
|
||||
|
@ -23,7 +23,7 @@ function init()
|
||||
*/
|
||||
eval("init()");
|
||||
|
||||
gcslice(0);
|
||||
gcslice(0); // Start IGC, but don't mark anything.
|
||||
selectforgc(objs.root2);
|
||||
gcslice(1);
|
||||
objs.root2.ptr = objs.root1.ptr;
|
||||
|
@ -22,7 +22,7 @@ function init()
|
||||
*/
|
||||
eval("init()");
|
||||
|
||||
gcslice(0);
|
||||
gcslice(0); // Start IGC, but don't mark anything.
|
||||
selectforgc(objs.root);
|
||||
gcslice(1);
|
||||
delete objs.root.b;
|
||||
|
@ -4,7 +4,7 @@ var g1 = newGlobal();
|
||||
var g2 = newGlobal();
|
||||
|
||||
schedulegc(g1);
|
||||
gcslice(0);
|
||||
gcslice(0); // Start IGC, but don't mark anything.
|
||||
schedulegc(g2);
|
||||
gcslice(1);
|
||||
gcslice();
|
||||
|
@ -5,7 +5,7 @@ var g2 = newGlobal();
|
||||
|
||||
schedulegc(g1);
|
||||
schedulegc(g2);
|
||||
gcslice(0);
|
||||
gcslice(0); // Start IGC, but don't mark anything.
|
||||
schedulegc(g1);
|
||||
gcslice(1);
|
||||
gcslice();
|
||||
|
Loading…
Reference in New Issue
Block a user