沿用 counter 与 counter + ready 的例子,从 Java 读写锁规则一路看到 JDK、HotSpot 与 x86-64,理解 ReadWriteLock 如何提供原子性、可见性…