diff --git a/main/src/main/scala/sbt/internal/GCUtil.scala b/main/src/main/scala/sbt/internal/GCUtil.scala index e114c9e85..53a5c0031 100644 --- a/main/src/main/scala/sbt/internal/GCUtil.scala +++ b/main/src/main/scala/sbt/internal/GCUtil.scala @@ -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 }