(int refnum, GoObject obj)
| 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); |