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

Class GoRef

bind/java/Seq.java:285–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 // GoRefs are enqueued to the singleton GoRefQueue when no longer live,
284 // so the corresponding reference count can be decremented.
285 static class GoRef extends PhantomReference<GoObject> {
286 final int refnum;
287
288 GoRef(int refnum, GoObject obj, GoRefQueue q) {
289 super(obj, q);
290 if (refnum > 0) {
291 throw new RuntimeException("GoRef instantiated with a Java refnum " + refnum);
292 }
293 this.refnum = refnum;
294 }
295 }
296
297 // RefMap is a mapping of integers to Ref objects.
298 //

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected