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

Method dec

chapter24/src/test/java/com/seaofnodes/simple/Eval2.java:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

retMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected