I'd expect to see some handling here if the compareAndSet fails.