Bug 707664 - atoms compartment should beunlocked during OOM reporting. r=luke

This commit is contained in:
Igor Bukanov
2011-12-05 21:28:07 +01:00
parent 83373a849c
commit 5efb25836b
5 changed files with 40 additions and 26 deletions

View File

@@ -497,7 +497,7 @@ AtomizeInline(JSContext *cx, const jschar **pchars, size_t length,
/*
* We have to relookup the key as the last ditch GC invoked from the
* string allocation or OOM handling may unlock the atomsCompartment.
* string allocation or OOM handling unlocks the atomsCompartment.
*
* N.B. this avoids recomputing the hash but still has a potential
* (# collisions * # chars) comparison cost in the case of a hash