commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Updated: (POOL-11) [pool] GenericObjectPool.Evictor._cancelled should to be declared as volatile
Date Fri, 14 Jul 2006 04:38:31 GMT
     [ ]

Henri Yandell updated POOL-11:

    Bugzilla Id:   (was: 37321)
    Fix Version: 1.3

> [pool] GenericObjectPool.Evictor._cancelled should to be declared as volatile
> -----------------------------------------------------------------------------
>          Key: POOL-11
>          URL:
>      Project: Commons Pool
>         Type: Bug

>  Environment: Operating System: All
> Platform: All
>     Reporter: Sandy McArthur (from Bugzilla import)
>     Priority: Minor
>      Fix For: 1.3

> In GenericObjectPool line 1121 the field _cancelled should to be declared as volatile.

> My understanding of the JLS is that Threads are allowed to make a local copy of shared
variables and since 
> _cancled is used by a  a Thread to control termination of the run() method and appears
to only ever be 
> updated by other threads calling the cancle() method which means the update to _cancled
may go 
> unnoticed for a good long while.
> That said, every JVM I've used was implemented in a way that would detect a change to
_cancled in a 
> reasonable amount of time but that behavior shouldn't be depended on.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message