Void () { // It's critical there are no collisions in the thread-local map ReflectionUtil.resetField(Thread.currentThread(), myThreadLocalsField); for (int r = 0; r < readIterations; r++) { ReadMostlyRWLock.Reader reader = lock.startRead(); assertNotNull(reader); lock.endRead(reader); } return null; }