113114115116117118119120121122123
PersistentHashSet old, links; try { do { old = linksref.get(); links = (PersistentHashSet) old.disjoin(handle); } while (!linksref.weakCompareAndSet(old, links)); } catch (Exception e) { throw new RuntimeException(e); }