commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (MATH-757) ResizableDoubleArray is not thread-safe yet has some synch. methods
Date Mon, 22 Oct 2012 14:08:15 GMT


Gilles commented on MATH-757:

What's the status of this issue?

Is the class in a consistent state?
Should this class really be advertized as thread-safe?

Primarily, it's a utility for CM's internal use; currently, it's used in
* ExponentialDistribution (as a local variable used only at class initialization)
* DescriptiveStatistics (as a private field)
with no need of thread-safety.

If the answer to the above is "no", could we just drop all "synchronized" keywords and be
done with this issue?

> ResizableDoubleArray is not thread-safe yet has some synch. methods
> -------------------------------------------------------------------
>                 Key: MATH-757
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Sebb
> ResizableDoubleArray has several synchronised methods, but is not thread-safe, because
class variables are not always accessed using the lock.
> Is the class supposed to be thread-safe?
> If so, all accesses (read and write) need to be synch.
> If not, the synch. qualifiers could be dropped.
> In any case, the protected fields need to be made private.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message