So why MDC, in the same package as NDC, does use ThreadLocalMap which inherits from InheritableThreadLocal, which appeared solely in 1.2 ?
-----Message d'origine----- De : Elias Ross [mailto:[EMAIL PROTECTED] Envoye : jeudi 12 fevrier 2004 20:32 A : Log4J Developers List Objet : RE: NDC.remove() and throughput in J2EE On Thu, 2004-02-12 at 07:12, zze-ironman LIGNE E ext DvSI/SIReS/GRE wrote: > Just modified NDC so as it uses a ThreadLocal as ht instead of a > Hashtable > with the threads as keys. This acts functionally equivalent, but no > longer need for lazy-references removal (lazyRemove method) as > ThreadLocals > are garbaged when threads are terminated. > do you feel it correct ? Since ThreadLocal is not available in Java 1.1, I guess the log4j developers decided to make their own work around. If Java 1.1 support is being dropped for 1.3, then this change would be ideal. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
