随笔分类 - JDK源码
摘要:每个线程中都有一个变量: ThreadLocal.ThreadLocalMap threadLocals = null;threadLocals保存着该线程的所有的ThreadLocal。ThreadLocal中get()方法: public T get() { Thread t = Thread.
阅读全文
摘要:Object类源码阅读: Object类中包含的方法: 1.private static native void registerNatives(); static { registerNatives();}说明:就是对几个本地方法进行注册2.public final native Class<?>
阅读全文

浙公网安备 33010602011771号