> what's the relationship between reserverCache and> cachelist in your code?
cacheList是一个HashMap,Key是public static final Integer,代表保存Cache的类型,Value是Cache Object.
而Cache内部也用了一个HashMap而已,只不过Cache::get/set同步了而已。
>if you later put
> reserverCache into cachelist at the end of synch
> block, I guess it's fine as there is no crossing
> point among threads before that.
我就在想,引用之间的赋值应该是原子操作的吧?