// I'm getting 25 mill/s cache lookups which is not that great svoid bench_getMethodCacheForClass() { print("Loading 1000 classes"); L classes = map classForName(takeFirst(1000, classNamesInJigsawModule("java.base"))); print("Have " + nClasses(classes) + ". Filling method caches"); time { for (c : classes) assertNotNull(callOpt_getCache(c)); } print("Looking them up again."); benchFor5(-> { for (c : classes) assertNotNull(callOpt_getCache(c)); }); print("Classes in method cache: " + l(callOpt_cache)); }