RefCountedClassLoaderCache

mill.util.RefCountedClassLoaderCache
class RefCountedClassLoaderCache(sharedLoader: ClassLoader, sharedPrefixes: Seq[String], parent: ClassLoader) extends AutoCloseable

Caches classloaders that can be shared between different workers, keeping a reference count of each classloader and only closing it after no more references exist

Attributes

Source
RefCountedClassLoaderCache.scala
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def close(): Unit

Attributes

Definition Classes
AutoCloseable
Source
RefCountedClassLoaderCache.scala
def extraRelease(cl: ClassLoader): Unit
def get(combinedCompilerJars: Seq[PathRef])(using e: Enclosing): URLClassLoader
def release(combinedCompilerJars: Seq[PathRef]): Option[(URLClassLoader, Int)]