From fcaf3d41591152516f1e42cae00660475f2c43d1 Mon Sep 17 00:00:00 2001 From: friendseeker <66892505+Friendseeker@users.noreply.github.com> Date: Sat, 30 Dec 2023 10:42:52 -0800 Subject: [PATCH] Remove source stamp cache in InitialStamps Delegate to getAllSourceStamps --- .../zinc-core/src/main/scala/sbt/internal/inc/Stamp.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/zinc-core/src/main/scala/sbt/internal/inc/Stamp.scala b/internal/zinc-core/src/main/scala/sbt/internal/inc/Stamp.scala index bb27b3c23..58d14906b 100644 --- a/internal/zinc-core/src/main/scala/sbt/internal/inc/Stamp.scala +++ b/internal/zinc-core/src/main/scala/sbt/internal/inc/Stamp.scala @@ -410,19 +410,17 @@ private class InitialStamps( import scala.collection.JavaConverters._ // cached stamps for files that do not change during compilation - private val sources: Map[VirtualFileRef, XStamp] = new ConcurrentHashMap().asScala private val libraries: Map[VirtualFileRef, XStamp] = new ConcurrentHashMap().asScala override def getAllLibraryStamps: util.Map[VirtualFileRef, XStamp] = libraries.asJava override def getAllSourceStamps: util.Map[VirtualFileRef, XStamp] = - sources.asJava + underlying.getAllSourceStamps override def getAllProductStamps: util.Map[VirtualFileRef, XStamp] = new util.HashMap() override def product(prod: VirtualFileRef): XStamp = underlying.product(prod) - override def source(src: VirtualFile): XStamp = - sources.getOrElseUpdate(src, underlying.source(src)) + override def source(src: VirtualFile): XStamp = underlying.source(src) override def library(lib: VirtualFileRef): XStamp = libraries.getOrElseUpdate(lib, underlying.library(lib)) }