Discard jitcode when changing chunk limit in JS shell, bug 722598. r=dvander

This commit is contained in:
Brian Hackett 2012-02-12 12:17:30 -08:00
parent 6ac6b8f60d
commit d701c17521

View File

@ -3885,6 +3885,10 @@ MJitChunkLimit(JSContext *cx, uintN argc, jsval *vp)
mjit::SetChunkLimit((uint32_t) t);
#endif
// Clear out analysis information which might refer to code compiled with
// the previous chunk limit.
JS_GC(cx);
vp->setUndefined();
return true;
}