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

Method trackGoRef

bind/java/Seq.java:84–89  ·  view source on GitHub ↗
(int refnum, GoObject obj)

Source from the content-addressed store, hash-verified

82 //
83 // When we have real code, examine the tradeoffs.
84 public static void trackGoRef(int refnum, GoObject obj) {
85 if (refnum > 0) {
86 throw new RuntimeException("trackGoRef called with Java refnum " + refnum);
87 }
88 goRefQueue.track(refnum, obj);
89 }
90
91 public static Ref getRef(int refnum) {
92 return tracker.get(refnum);

Callers

nothing calls this directly

Calls 1

trackMethod · 0.80

Tested by

no test coverage detected