CopyOnWriteArrayList
- CopyOnWriteArrayList,add,引用赋值是原子操作吗?
引用类型的读写均是原子操作,https://docs.oracle.com/javase/specs/jls/se8/html/jls-17.html#jls-17.7,https://www.v2ex.com/t/280788
引用类型的读写均是原子操作,https://docs.oracle.com/javase/specs/jls/se8/html/jls-17.html#jls-17.7,https://www.v2ex.com/t/280788