Back out 29a5d0c6ea47 (bug 1239099) for a huge spike in instances of bug 1093064, frequent "test_cache_orphaned_cache.html | disk usage should have grown", and causing bug 1239206. At least.

CLOSED TREE
This commit is contained in:
Phil Ringnalda 2016-01-12 22:42:30 -08:00
parent 4890236ed6
commit ede3f22ad4

View File

@ -6475,16 +6475,6 @@ GCRuntime::defaultBudget(JS::gcreason::Reason reason, int64_t millis)
void
GCRuntime::gc(JSGCInvocationKind gckind, JS::gcreason::Reason reason)
{
// This fully-blocking API is frequently used by test code that wants to
// clean up some specific data at a known time. If there is an ongoing GC,
// we need to finish it and do another complete GC to ensure that
// previous roots, caches, and barriers do not keep the thing live.
//
// Note that we cannot use resetIncrementalGC to do this as the invocation
// kind may have changed.
if (isIncrementalGCInProgress())
finishGC(reason);
invocationKind = gckind;
collect(true, SliceBudget::unlimited(), reason);
}