RefCountedClassLoaderCache

mill.util.RefCountedClassLoaderCache
@Scaladoc(value = "/**\n * Caches classloaders that can be shared between different workers, keeping\n * a reference count of each classloader and only closing it after no more\n * references exist\n */")
class RefCountedClassLoaderCache(sharedLoader: ClassLoader, sharedPrefixes: Seq[String], parent: ClassLoader)

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
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close(): Unit
def extraRelease(cl: ClassLoader): Unit
def get(combinedCompilerJars: Seq[PathRef])(implicit e: Enclosing): URLClassLoader
def release(combinedCompilerJars: Seq[PathRef]): Option[(URLClassLoader, Int)]