随笔分类 -  JDK源码

摘要:每个线程中都有一个变量: ThreadLocal.ThreadLocalMap threadLocals = null;threadLocals保存着该线程的所有的ThreadLocal。ThreadLocal中get()方法: public T get() { Thread t = Thread. 阅读全文
posted @ 2021-05-22 17:23 澄海乌鸦 阅读(664) 评论(0) 推荐(0)
摘要:Object类源码阅读: Object类中包含的方法: 1.private static native void registerNatives(); static { registerNatives();}说明:就是对几个本地方法进行注册2.public final native Class<?> 阅读全文
posted @ 2019-04-03 23:25 澄海乌鸦 阅读(168) 评论(0) 推荐(0)