Merge pull request #4982 from eed3si9n/wip/gc

avoid force gc during load
This commit is contained in:
eugene yokota
2019-08-23 13:59:32 -04:00
committed by GitHub
@@ -18,7 +18,7 @@ private[sbt] object GCUtil {
// as specified by system properties.
val defaultForceGarbageCollection: Boolean = true
val defaultMinForcegcInterval: Duration = 10.minutes
val lastGcCheck: AtomicLong = new AtomicLong(0L)
val lastGcCheck: AtomicLong = new AtomicLong(System.currentTimeMillis)
def forceGcWithInterval(minForcegcInterval: Duration, log: Logger): Unit = {
val now = System.currentTimeMillis