mirror of
https://github.com/sbt/sbt.git
synced 2026-08-29 01:24:09 +02:00
Merge pull request #4982 from eed3si9n/wip/gc
avoid force gc during load
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user