mirror of https://github.com/sbt/sbt.git
Merge pull request #7732 from Friendseeker/remove-gc-workaround
[1.x] Remove deprecated `System.runFinalization`
This commit is contained in:
commit
09c13af51b
|
|
@ -36,14 +36,6 @@ private[sbt] object GCUtil {
|
|||
log.debug(s"Forcing garbage collection...")
|
||||
// Force the detection of finalizers for scala.reflect weakhashsets
|
||||
System.gc()
|
||||
// Force finalizers to run.
|
||||
try {
|
||||
System.runFinalization()
|
||||
} catch {
|
||||
case _: NoSuchMethodError =>
|
||||
}
|
||||
// Force actually cleaning the weak hash maps.
|
||||
System.gc()
|
||||
} catch {
|
||||
case NonFatal(_) => // gotta catch em all
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue