| 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 | // |
nothing calls this directly
no outgoing calls
no test coverage detected