INNER CODE UNIT · Java

incRefnum

xxf098/shadowsocksr-v2ray-trojan-android · src/main/java/go/Seq.java:137

        synchronized void incRefnum(final int i) {
            final Ref value = this.javaObjs.get(i);
            if (value == null) {
                throw new RuntimeException("referenced Java object is not found: refnum=" + i);
            }
            value.inc();
        }

        synchronized void dec(final int n) {
            if (n <= 0) {
                Seq.log.severe("dec request for Go object " + n);
                return;
            }
            if (n == Seq.nullRef.refnum) {
                return;
            }
            final Ref value = this.javaObjs.get(n);
            if (value == null) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…