Use a background thread to free() memory while sweeping (505612, r=brendan,bent).

This commit is contained in:
Andreas Gal
2009-07-23 15:12:34 -07:00
parent 8c102035a0
commit 5ad4fc479c
14 changed files with 287 additions and 11 deletions

View File

@@ -1188,7 +1188,7 @@ static void
array_finalize(JSContext *cx, JSObject *obj)
{
if (obj->dslots)
JS_free(cx, obj->dslots - 1);
cx->runtime->asynchronousFree(obj->dslots - 1);
obj->dslots = NULL;
}