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
commit 49afe01287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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