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

Method incRef

bind/java/Seq.java:66–68  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

64 // incRefnum() to make sure the Go reference count is positive
65 // even if the Proxy is garbage collected and its Ref is finalized.
66 public static int incRef(Object o) {
67 return tracker.inc(o);
68 }
69
70 public static int incGoObjectRef(GoObject o) {
71 return o.incRefnum();

Callers

nothing calls this directly

Calls 1

incMethod · 0.45

Tested by

no test coverage detected