private static final Unsafe unsafe;
static{
try{
Field field = Unsafe.class.getDeclaredField("theUnsafe");
field.setAccessible(true);
unsafe = (Unsafe)field.get(null);
}catch (Exception e){
throw new RuntimeException(e);
}
}
Unsafe初涉
最新推荐文章于 2021-02-23 17:53:55 发布