зеркало из https://github.com/mozilla/gecko-dev.git
Bug 510015: TM: more Allocator merge fallout in jsregexp.cpp, r=gal.
--HG-- extra : rebase_source : 7607da6f49cc355af49b73528c826d5888291eb9
This commit is contained in:
Родитель
ecc6ad9ee7
Коммит
cf3e9a04dd
|
@ -3164,6 +3164,11 @@ class RegExpNativeCompiler {
|
||||||
if (alloc->outOfMemory() || oom ||
|
if (alloc->outOfMemory() || oom ||
|
||||||
js_OverfullFragmento(tm, fragmento)) {
|
js_OverfullFragmento(tm, fragmento)) {
|
||||||
fragmento->clearFrags();
|
fragmento->clearFrags();
|
||||||
|
#ifdef DEBUG
|
||||||
|
fragmento->labels->clear();
|
||||||
|
delete lirbuf->names;
|
||||||
|
lirbuf->names = new (&gc) LirNameMap(&gc, *alloc, fragmento->labels);
|
||||||
|
#endif
|
||||||
tm->reCodeAlloc->sweep();
|
tm->reCodeAlloc->sweep();
|
||||||
alloc->reset();
|
alloc->reset();
|
||||||
lirbuf->clear();
|
lirbuf->clear();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче