https://codingnote.cc/zh-hk/p/2943/
volatile底层实现原理