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

@@ -649,7 +649,7 @@ generator_finalize(JSContext *cx, JSObject *obj)
*/
JS_ASSERT(gen->state == JSGEN_NEWBORN || gen->state == JSGEN_CLOSED ||
gen->state == JSGEN_OPEN);
JS_free(cx, gen);
cx->runtime->asynchronousFree(gen);
}
}