avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [patch] DefaultPool fix (was Re: Pooling code && 1 object)
Date Mon, 10 Dec 2001 13:33:15 GMT
Peter Donald wrote:

> Sounds good to me ... Berin ?
> On Sun, 9 Dec 2001 04:23, Marcus Crafter wrote:
>>Hi All,
>>	Hope all is well.
>>	After playing around with the Excalibur code in jswat I was able
>>	to validate what was going on inside the pooling code when a
>>	pool reaches it's maximum capacity.
>>	With the current code, pools shrink everytime they are full (ie.
>>	everytime they reach capacity, but not exceed it). I'm not sure
>>	if this was intended ? (please correct me if I'm wrong) but IMO I think
>>	this is different than expected by a developer.
>>	Attached is a patch to fix DefaultPool so that pools are reduced
>>	in size only when they exceed capacity, not when they reach it. Hope
>>	it's ok.
>>	I've also attached the test program I wrote to validate the fix
>>	just in case someone else would like to check it.
>>	Cheers,
>>	Marcus

Sounds good, I just have to find the patch...


"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin

To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message