[jboss-jira] [JBoss JIRA] (JGRP-2491) Reduce use of synchronized
Bela Ban (Jira)
issues at jboss.org
Fri Jul 17 05:59:01 EDT 2020
Bela Ban created JGRP-2491:
------------------------------
Summary: 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
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().}}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list