]
Bela Ban closed JGRP-2491.
--------------------------
Resolution: Won't Fix
This will be fixed by the Loom project (replacing synchronized with ReentrantLock
intrinsically)
Reduce use of synchronized
--------------------------
Key: JGRP-2491
URL:
https://issues.redhat.com/browse/JGRP-2491
Project: JGroups
Issue Type: Enhancement
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Minor
Fix For: 5.0.0.Final
The synchronized keyword fares badly with virtual threads (project Loom). Contrary to
{{java.util.concurrent.lock.Lock}}, {{synchronized}} can still block. This might change in
the future, but for now, we should replace all uses of {{synchronized}} with
{{Lock.lock()/unlock().}}