(int refnum)
| 198 | } |
| 199 | |
| 200 | synchronized void incRefnum(int refnum) { |
| 201 | Ref ref = javaObjs.get(refnum); |
| 202 | if (ref == null) { |
| 203 | throw new RuntimeException("referenced Java object is not found: refnum="+refnum); |
| 204 | } |
| 205 | ref.inc(); |
| 206 | } |
| 207 | |
| 208 | // dec decrements the reference count of a Java object when |
| 209 | // Go signals a corresponding proxy object is finalized. |