Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem getting simultaneous objects from pool #6

Open
GoogleCodeExporter opened this issue Jun 21, 2015 · 0 comments
Open

problem getting simultaneous objects from pool #6

GoogleCodeExporter opened this issue Jun 21, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

there's a problem getting n simultaneous object from pool with a maximum of 
actives lesser than n using the 1.1.3 snapshot release.

I think the problem is caused by a null return of poolableObject.make() call in 
create function.

I tested it with this modifications and it works:

    protected void create() throws PoolException {
        T t = poolableObject.make();
        if (t != null) {
            totalSize.incrementAndGet();
            queue.add(t);
        }
    }

Can u verify and fix it please?

Regards,
Daniele

Original issue reported on code.google.com by daniele....@gmail.com on 17 Feb 2014 at 2:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant