摘要: public final int getAndAddInt(Object o, long offset, int delta) { int v; do { v = getIntVolatile(o, offset); } while (!compareAndSwapInt(o, offset, v, v + delta));... 阅读全文
posted @ 2017-03-25 17:24 友哥 阅读(153) 评论(0) 推荐(0) 编辑
摘要: private final Node[] initTable() { Node[] tab; int sc; while ((tab = table) == null || tab.length == 0) { if ((sc = sizeCtl) 0) ? sc : DEFAULT_CAPACITY; ... 阅读全文
posted @ 2017-03-25 15:46 友哥 阅读(178) 评论(0) 推荐(0) 编辑