I just had a look at the java.util.concurrent.ConcurrentHashMap.computeIfAbsent()
method and trying to understand this pattern (see the method impl for details):
Node<K,V> r = new ReservationNode<K,V>();
synchronized(r) {
// ...
}
Syncing on a local variable monitor? By what means does the sync block make sense?