[
https://issues.apache.org/jira/browse/MATH-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gilles Sadowski updated MATH-1694:
----------------------------------
difficulty-level: (was: Easy)
> 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, 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)