witty-crayon-22786
09/08/2015, 4:33 PMwitty-crayon-22786
09/08/2015, 4:33 PMwitty-crayon-22786
09/08/2015, 4:40 PMtags
into a dict, right?bored-art-40741
09/08/2015, 4:41 PMbored-art-40741
09/08/2015, 4:42 PMwitty-crayon-22786
09/08/2015, 4:42 PMancient-stone-50795
09/08/2015, 4:42 PMbored-art-40741
09/08/2015, 4:42 PMbored-art-40741
09/08/2015, 4:42 PMzinc_opts: [
'-Dzinc.compiler.cache.limit=5',
'-Dzinc.analysis.cache.limit=100',
'-Dzinc.resident.cache.limit=0', # These leak memory. Do not use.
]
bored-art-40741
09/08/2015, 4:42 PMwitty-crayon-22786
09/08/2015, 4:42 PMwitty-crayon-22786
09/08/2015, 4:43 PMbored-art-40741
09/08/2015, 4:43 PMbored-art-40741
09/08/2015, 4:43 PMwitty-crayon-22786
09/08/2015, 4:43 PMwitty-crayon-22786
09/08/2015, 4:44 PMwitty-crayon-22786
09/08/2015, 4:44 PMsrc/scala/org/pantsbuild/zinc
to seebored-art-40741
09/08/2015, 4:48 PMwitty-crayon-22786
09/08/2015, 4:51 PMwitty-crayon-22786
09/08/2015, 4:51 PM/**
* Static cache for zinc compilers.
*/
val compilerCache = Cache[Setup, Compiler](Setup.Defaults.compilerCacheLimit)
/**
* Static cache for resident scala compilers.
*/
val residentCache: GlobalsCache = createResidentCache(Setup.Defaults.residentCacheLimit)
/**
* Static cache for compile analyses. Values must be Options because in get() we don't yet know if, on
* a cache miss, the underlying file will yield a valid Analysis.
*/
val analysisCache = Cache[FileFPrint, Option[(Analysis, CompileSetup)]](Setup.Defaults.analysisCacheLimit)
witty-crayon-22786
09/08/2015, 4:52 PMval analysisCacheLimit = Util.intProperty(prop("analysis.cache.limit"), cacheLimit)
val compilerCacheLimit = Util.intProperty(prop("compiler.cache.limit"), cacheLimit)
val residentCacheLimit = Util.intProperty(prop("resident.cache.limit"), 0)
bored-art-40741
09/08/2015, 4:52 PMwitty-crayon-22786
09/08/2015, 4:52 PMwitty-crayon-22786
09/08/2015, 4:53 PMwitty-crayon-22786
09/08/2015, 4:53 PMwitty-crayon-22786
09/08/2015, 4:53 PMCache
instances there are weak reference cacheswitty-crayon-22786
09/08/2015, 4:53 PMGlobalsCache
is, so it's entirely possible that it is leakybored-art-40741
09/08/2015, 4:58 PMbored-art-40741
09/08/2015, 4:58 PMbored-art-40741
09/08/2015, 4:58 PM