commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Commented: (POOL-113) Inconsistent synch in InvalidEvictorLender, GenericKeyedObjectPool, GenericObjectPool
Date Mon, 10 Dec 2007 15:16:43 GMT

    [ https://issues.apache.org/jira/browse/POOL-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550100
] 

Sebb commented on POOL-113:
---------------------------

The easiest solution for _testOnBorrow and _testOnReturn is probably to make these volatile,
in which case the get/set routines no longer need to be synchronized.

> Inconsistent synch in InvalidEvictorLender, GenericKeyedObjectPool, GenericObjectPool
> -------------------------------------------------------------------------------------
>
>                 Key: POOL-113
>                 URL: https://issues.apache.org/jira/browse/POOL-113
>             Project: Commons Pool
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 1.4
>
>         Attachments: InvalidEvictorLender.txt
>
>
> InvalidEvictorLender does not always synchronize referant field.
> Patch to follow - please check that the correct synch object is used.
> Similar problems apply to GenericKeyedObjectPool:
> Inconsistent synchronization of org.apache.commons.pool.impl.GenericKeyedObjectPool._testOnBorrow;
locked 66% of time
> GenericKeyedObjectPool.java	line 913
> Inconsistent synchronization of org.apache.commons.pool.impl.GenericKeyedObjectPool._testOnReturn;
locked 66% of time
> GenericKeyedObjectPool.java	line 1096
> And to GenericObjectPool:
> Inconsistent synchronization of org.apache.commons.pool.impl.GenericObjectPool._testOnBorrow;
locked 66% of time
> GenericObjectPool.java	line 915
> Inconsistent synchronization of org.apache.commons.pool.impl.GenericObjectPool._testOnReturn;
locked 66% of time
> GenericObjectPool.java	line 1017

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message