You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix logic error in reference counted closing
- Add a new policy to cache regardless of timestamps and
regardless of directory elements in the classpath.
valurlsAndFiles= classpath.map(u => u ->AbstractFile.getURL(u))
191
-
valhasNullURL= urlsAndFiles.filter(_._2 eq null)
192
-
if (hasNullURL.nonEmpty) {
193
-
// TODO if the only null is jrt:// we can still cache
194
-
// TODO filter out classpath elements pointing to non-existing files before we get here, that's another source of null
195
-
analyzer.macroLogVerbose(s"macro classloader: caching is disabled because `AbstractFile.getURL` returned `null` for ${hasNullURL.map(_._1).mkString(", ")}.")
defsetting(style: String, styleLong: String) =ChoiceSetting(s"-Ycache-$style-class-loader", "policy", s"Policy for caching class loaders for $styleLong that are dynamically loaded.", values.map(_.name), None.name, values.map(_.help))
278
278
objectNoneextendsCachePolicy("none", "Don't cache class loader")
279
279
objectLastModifiedextendsCachePolicy("last-modified", "Cache class loader, using file last-modified time to invalidate")
280
+
objectAlwaysextendsCachePolicy("always", "Cache class loader with no invalidation")
280
281
// TODO Jorge to add new policy. Think about whether there is a benefit to the user on offering this as a separate policy or unifying with the previous one.
281
282
// object ZipMetadata extends CachePolicy("zip-metadata", "Cache classloade, using file last-modified time, then ZIP file metadata to invalidate")
0 commit comments