commons-dev mailing list archives

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

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: http://issues.apache.org/jira/browse/POOL-11
>      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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message