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

Method dec

chapter21/src/test/java/com/seaofnodes/simple/Eval2.java:29–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

retMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected