mirror of https://github.com/sbt/sbt.git
Merge pull request #4982 from eed3si9n/wip/gc
avoid force gc during load
This commit is contained in:
commit
49afe01287
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue