[jboss-jira] [JBoss JIRA] (WFCORE-2112) Non atomic update of volatile fields in ManagedServerSocketBinding and GeneralTimeoutHandler
Kabir Khan (JIRA)
issues at jboss.org
Tue Dec 13 06:26:00 EST 2016
[ https://issues.jboss.org/browse/WFCORE-2112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kabir Khan updated WFCORE-2112:
-------------------------------
Affects Version/s: 3.0.0.Alpha15
> Non atomic update of volatile fields in ManagedServerSocketBinding and GeneralTimeoutHandler
> --------------------------------------------------------------------------------------------
>
> Key: WFCORE-2112
> URL: https://issues.jboss.org/browse/WFCORE-2112
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 3.0.0.Alpha15
> Reporter: Rostislav Svoboda
> Assignee: Kabir Khan
>
> https://github.com/wildfly/wildfly-core/blob/master/network/src/main/java/org/jboss/as/network/ManagedServerSocketBinding.java#L86
> https://github.com/wildfly/wildfly-core/blob/master/protocol/src/main/java/org/jboss/as/protocol/GeneralTimeoutHandler.java#L47
> Volatile fields are not synchronized on update.
> I think {{AtomicLong}} could be used instead of {{volatile long}} or update should be synchronized.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list