commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Thomas (JIRA)" <>
Subject [jira] Commented: (POOL-119) GenericObjectPool: Provide option to create new objects serial
Date Wed, 06 May 2009 12:32:30 GMT


Mark Thomas commented on POOL-119:

As a result of POOL-125, the proposed patch needs some additional work. Put simply, you can't
call any factory method form inside a synchronized block as it introduces the possibility
of a deadlock.

I am close to committing a patch for POOL-125. You may wish to wait until after the fix for
POOL-125 has been committed before updating your patch.

> GenericObjectPool: Provide option to create new objects serial
> --------------------------------------------------------------
>                 Key: POOL-119
>                 URL:
>             Project: Commons Pool
>          Issue Type: New Feature
>    Affects Versions: 1.4
>            Reporter: Christoph Kutzinski
>             Fix For: 1.5
>         Attachments: patch.txt, patch2.txt
> As discussed on the Commons-Dev mailing list:
> In certain scenarios it is desirable to serialize creation of new objects, if the pool
needs to grow. This has 2 main advantages:
> - help keeping load away from the engine creating the objects (e.g. the database server)
during high load situations
> - avoid unnecessary object creation if objects where returned to pool while multiple
'new' objects are requested from the pool

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

View raw message