logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jess Holle <je...@ptc.com>
Subject Re: Proposed synchronization changes
Date Fri, 06 Jun 2008 00:30:54 GMT
Jess Holle wrote:
> For anyone interested this patch set makes the following changes:
>
>     * Removed the synchronization bottleneck in
>       Category.callAppenders() and AppenderAttachableImpl.
>     * Added AppenderAttachableImpl5, a Java 5 specific alternative to
>       AppenderAttachableImpl, and used CopyOnWriteArrayList to further
>       reduce locking during append.  Used this from Category rather
>       than AppenderAttachableImpl but left AppenderAttachableImpl
>       around for any for compatibility with any subclasses as
>       AppenderAttachableImpl5 does not use a protected Vector field as
>       subclasses would expect.
>
P.S. My previous AppenderAttachableImpl5 was susceptible to race 
conditions.  This one should not be -- at least not any that I decided 
mattered.

--
Jess Holle


Mime
View raw message