@Override protected void finalize() throws Throwable { try { super.finalize(); } finally { Link head = link; link = null; while (head != null) { reclaimSpace(LINK_CAPACITY); Link next = head.next; // Unlink to help GC and guard against GC nepotism. head.next = null; head = next; } } }
@Override protected void finalize() throws Throwable { try { super.finalize(); } finally { Link head = link; link = null; while (head != null) { reclaimSpace(LINK_CAPACITY); Link next = head.next; // Unlink to help GC and guard against GC nepotism. head.next = null; head = next; } } }
@Override protected void finalize() throws Throwable { try { super.finalize(); } finally { Link head = link; link = null; while (head != null) { reclaimSpace(LINK_CAPACITY); Link next = head.next; // Unlink to help GC and guard against GC nepotism. head.next = null; head = next; } } }
this.head.reclaimSpace(LINK_CAPACITY); this.head.link = head.next;
this.head.reclaimSpace(LINK_CAPACITY); this.head.link = head.next;
this.head.reclaimSpace(LINK_CAPACITY); this.head.link = head.next;
@Override protected void finalize() throws Throwable { try { super.finalize(); } finally { Link head = link; link = null; while (head != null) { reclaimSpace(LINK_CAPACITY); Link next = head.next; // Unlink to help GC and guard against GC nepotism. head.next = null; head = next; } } }
@Override public void run() { Link head = link; while (head != null) { reclaimSpace(LINK_CAPACITY); head = head.next; } }
@Override public void run() { Link head = link; while (head != null) { reclaimSpace(LINK_CAPACITY); head = head.next; } }
this.head.reclaimSpace(LINK_CAPACITY); this.head.link = head.next;
@Override protected void finalize() throws Throwable { try { super.finalize(); } finally { Link head = link; link = null; while (head != null) { reclaimSpace(LINK_CAPACITY); Link next = head.next; // Unlink to help GC and guard against GC nepotism. head.next = null; head = next; } } }
this.head.reclaimSpace(LINK_CAPACITY); this.head.link = head.next;
this.head.reclaimSpace(LINK_CAPACITY); this.head.link = head.next;
this.head.reclaimSpace(LINK_CAPACITY); this.head.link = head.next;