avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@apache.org>
Subject RE: [RT] pooling vs. release
Date Thu, 01 Aug 2002 17:19:07 GMT
> From: Leo Sutic [mailto:leo.sutic@inspireinfrastructure.com] 
> 
> > From: Torsten Curdt [mailto:tcurdt@dff.st]
> > 
> > On Thursday 01 August 2002 19:07, Berin Loritsch wrote:
> > > > From: Berin Loritsch [mailto:bloritsch@apache.org]
> > > >
> > > > BTW, fillInStackTrace() is a native method (AKA a JNI method).
> > >
> > > oh yeah, it is synchronized as well.
> > >
> > > Creating tons of exceptions in a multithreaded environment is not
> > > advised.
> > 
> > well, a boolean should do it (see example) and the Exception
> > could be created 
> > in finalize.
> 
> Much more useful to spew out the stack as it were when the 
> component was obtained.
> 
> That and a boolean flag == good.


The component has no clue when it was obtained.  It shouldn't, and
such a hack would cause more issues than it would solve.


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


Mime
View raw message