Bug 710947 - Allow hash table elements to be removed during GC (r=luke)

This commit is contained in:
Bill McCloskey 2011-12-16 14:01:44 -08:00
parent 60aa70f712
commit 45769c3f0c
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,8 @@
// |jit-test| allow-oom;
function startTest() {
if (typeof document != "object"
|| !document.location.href.match(/jsreftest.html/)) {}
};
gczeal(4);
startTest();
ArrayBuffer( 946684800000 );

View File

@ -2096,8 +2096,7 @@ MarkRuntime(JSTracer *trc)
void
TriggerGC(JSRuntime *rt, gcstats::Reason reason)
{
JS_ASSERT(!rt->gcRunning);
if (rt->gcIsNeeded)
if (rt->gcRunning || rt->gcIsNeeded)
return;
/*