Don't nuke the stackPool in JS_GC if it's in use by cx->stackHeaders or cx->fp (or other future users; 57096, r=shaver, a=jband).
git-svn-id: svn://10.0.0.236/trunk@81407 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b410b9817f
commit
b13ca3b398
@ -1535,7 +1535,7 @@ JS_MarkGCThing(JSContext *cx, void *thing, const char *name, void *arg)
|
||||
JS_PUBLIC_API(void)
|
||||
JS_GC(JSContext *cx)
|
||||
{
|
||||
if (!cx->fp)
|
||||
if (cx->stackPool.current == &cx->stackPool.first)
|
||||
JS_FinishArenaPool(&cx->stackPool);
|
||||
JS_FinishArenaPool(&cx->codePool);
|
||||
JS_FinishArenaPool(&cx->tempPool);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user