mirror of
https://github.com/sbt/sbt.git
synced 2026-09-06 01:26:55 +02:00
Merge pull request #7732 from Friendseeker/remove-gc-workaround
[1.x] Remove deprecated `System.runFinalization`
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user