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-09-07 08:11:23 发布