MCPcopy Create free account
hub / github.com/golang/mobile / inc

Method inc

bind/java/Seq.java:143–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 }
142
143 void inc() {
144 // Count how many times this ref's Java object is passed to Go.
145 if (refcnt == Integer.MAX_VALUE) {
146 throw new RuntimeException("refnum " + refnum + " overflow");
147 }
148 refcnt++;
149 }
150 }
151
152 static final RefTracker tracker = new RefTracker();

Callers 3

incMethod · 0.95
incRefnumMethod · 0.95
incRefMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected