[
https://issues.apache.org/jira/browse/MATH-1693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gilles Sadowski updated MATH-1693:
----------------------------------
Labels: concurrency synchronization (was: )
> Synchronization bug in "BaseRuleFactory"
> ----------------------------------------
>
> Key: MATH-1693
> URL: https://issues.apache.org/jira/browse/MATH-1693
> Project: Commons Math
> Issue Type: Bug
> Components: legacy
> Affects Versions: 4.0-beta1
> Reporter: Gilles Sadowski
> Priority: Critical
> Labels: concurrency, synchronization
> Fix For: 4.0-beta2
>
>
> Description adapted from
> [PR#340|https://github.com/apache/commons-math/pull/340]
> {{BaseRuleFactory.getRule}} reads and updates {{pointsAndWeightsDouble}}
> without holding the lock used by {{getRuleInternal}}.
> Factory instances are shared ({{IterativeLegendreGaussIntegrator}} keeps a
> _static_ {{GaussIntegratorFactory}}), so concurrent requests for different
> rules can corrupt the map.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)