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

Method trimHistory

src/jvm/clojure/lang/Ref.java:192–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191
192public void trimHistory(){
193 try
194 {
195 lock.writeLock().lock();
196 if(tvals != null)
197 {
198 tvals.next = tvals;
199 tvals.prior = tvals;
200 }
201 }
202 finally
203 {
204 lock.writeLock().unlock();
205 }
206}
207
208public int getHistoryCount(){
209 try

Callers

nothing calls this directly

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected