mirror of https://github.com/sbt/sbt.git
Remove compile error in GCUtil
runFinalization is going to be removed
This commit is contained in:
parent
78ac6d3809
commit
23b769efe6
|
|
@ -36,14 +36,6 @@ private[sbt] object GCUtil {
|
||||||
log.debug(s"Forcing garbage collection...")
|
log.debug(s"Forcing garbage collection...")
|
||||||
// Force the detection of finalizers for scala.reflect weakhashsets
|
// Force the detection of finalizers for scala.reflect weakhashsets
|
||||||
System.gc()
|
System.gc()
|
||||||
// Force finalizers to run.
|
|
||||||
try {
|
|
||||||
System.runFinalization()
|
|
||||||
} catch {
|
|
||||||
case _: NoSuchMethodError =>
|
|
||||||
}
|
|
||||||
// Force actually cleaning the weak hash maps.
|
|
||||||
System.gc()
|
|
||||||
} catch {
|
} catch {
|
||||||
case NonFatal(_) => // gotta catch em all
|
case NonFatal(_) => // gotta catch em all
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue