MCPcopy Index your code
hub / github.com/clojure/clojure / resetCache

Method resetCache

src/jvm/clojure/lang/MultiFn.java:130–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130private IPersistentMap resetCache() {
131 rw.writeLock().lock();
132 try
133 {
134 methodCache = getMethodTable();
135 cachedHierarchy = hierarchy.deref();
136 return methodCache;
137 }
138 finally
139 {
140 rw.writeLock().unlock();
141 }
142}
143
144 public IFn getMethod(Object dispatchVal) {
145 if(cachedHierarchy != hierarchy.deref())

Callers 5

addMethodMethod · 0.95
removeMethodMethod · 0.95
preferMethodMethod · 0.95
getMethodMethod · 0.95

Calls 3

getMethodTableMethod · 0.95
lockMethod · 0.80
derefMethod · 0.65

Tested by

no test coverage detected