资讯

The ReentrantLock class is part of the java.util.concurrent.locks package. It implements the Lock interface, which defines the basic operations of a lock: lock, unlock, tryLock, and lockInterruptibly.
It seems that when a Java concurrent lock is used indirectly, such as this example with an AutoClosable wrapper, then it causes false positives AT_NONATOMIC ...