[jboss-jira] [JBoss JIRA] (JGRP-2491) Reduce use of synchronized
Bela Ban (Jira)
issues at jboss.org
Tue Jul 21 07:51:01 EDT 2020
[ https://issues.redhat.com/browse/JGRP-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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().}}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list