[
https://issues.apache.org/jira/browse/MATH-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Herbert resolved MATH-1694.
--------------------------------
Resolution: Fixed
Fixed in commit:
ee9e9bedc1b95c03772961c83404fef9f935e2b2
> Synchronization bug in "PolynomialsUtils"
> -----------------------------------------
>
> Key: MATH-1694
> URL: https://issues.apache.org/jira/browse/MATH-1694
> Project: Commons Math
> Issue Type: Bug
> Components: legacy
> Affects Versions: 4.0-beta1
> Reporter: Gilles Sadowski
> Priority: Critical
> Labels: concurrency, pull-request-available, synchronization
> Fix For: 4.0-beta2
>
>
> Description adapted from
> [PR#340|https://github.com/apache/commons-math/pull/340]
> {{PolynomialsUtils.createJacobiPolynomial}} publishes the coefficient list
> for a new (v, w) key before seeding it and then reads it outside the lock
> guarding the seeding, so a racing caller can extend a partial list and return
> a wrong polynomial.
> {{buildPolynomial}} also reads the cached coefficients after releasing the
> list lock.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)