CopyOnWriteArrayList

  • CopyOnWriteArrayList,add,引用赋值是原子操作吗?

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

posted @ 2019-08-24 16:37  darknessplus  阅读(130)  评论(0编辑  收藏  举报