MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / dec

Method dec

chapter18/src/test/java/com/seaofnodes/simple/Eval2.java:27–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26 // Dec ref count
27 void dec() {
28 assert _refcnt>0;
29 if( --_refcnt == 0 ) {
30 Frame prior = _prior;
31 _prior = null;
32 _data.clear();
33 // TODO: FREE LIST?
34 if( prior!=null )
35 prior.dec();
36 }
37 }
38
39 // Put a mapping from Node->Object
40 Node put(Node n, Object d) {

Callers 1

retMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected