When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo).

This commit is contained in:
Andreas Gal
2009-07-27 21:10:12 -07:00
parent e4c5bceb83
commit 414cfa1bd1
40 changed files with 859 additions and 513 deletions

View File

@@ -783,7 +783,7 @@ js_Atomize(JSContext *cx, const char *bytes, size_t length, uintN flags)
str.initFlat(chars, inflatedLength);
atom = js_AtomizeString(cx, &str, ATOM_TMPSTR | flags);
if (chars != inflated && str.flatChars())
JS_free(cx, chars);
cx->free(chars);
return atom;
}