标签:must map 共享 src log necessary table with xtend
① ThreadLocal类:
② ThreadLocal类的作用:
1 static class ThreadLocalMap { 2 static class Entry extends WeakReference<ThreadLocal> { 3 /** The value associated with this ThreadLocal. */ 4 Object value; 5 Entry(ThreadLocal k, Object v) { 6 super(k); 7 value = v; 8 } 9 } 10 /** 11 * The table, resized as necessary. 12 * table.length MUST always be a power of two. 13 */ 14 private Entry[] table; 15 }
标签:must map 共享 src log necessary table with xtend
原文地址:http://www.cnblogs.com/lyr612556/p/7819985.html