Bug 731423 - Don't do incremental GC when hitting alloc trigger (r=gwagner)

This commit is contained in:
Bill McCloskey 2012-05-23 16:24:26 -07:00
parent b9d2d5f9e3
commit 762b5ce3a4

View File

@ -3504,7 +3504,7 @@ BudgetIncrementalGC(JSRuntime *rt, int64_t *budget)
bool reset = false;
for (CompartmentsIter c(rt); !c.done(); c.next()) {
if (c->gcBytes > c->gcTriggerBytes) {
if (c->gcBytes >= c->gcTriggerBytes) {
*budget = SliceBudget::Unlimited;
rt->gcStats.nonincremental("allocation trigger");
}