Sweep script->types if gczeal is set to allow fuzz/test coverage (no bug,r=billm)

--HG--
extra : rebase_source : 95d75ad9c10fb7235dfb9f36e6466156c763f168
This commit is contained in:
Luke Wagner 2012-06-08 13:46:40 -07:00
parent ec5e031168
commit c1b02c6f63

View File

@ -2891,7 +2891,7 @@ ReleaseObservedTypes(JSRuntime *rt)
{
bool releaseTypes = false;
int64_t now = PRMJ_Now();
if (now >= rt->gcJitReleaseTime) {
if (rt->gcZeal() || now >= rt->gcJitReleaseTime) {
releaseTypes = true;
rt->gcJitReleaseTime = now + JIT_SCRIPT_RELEASE_TYPES_INTERVAL;
}