ceki        01/07/17 23:03:15

  Modified:    src/java/org/apache/log4j NDC.java
  Log:
  Corrected the performance bug observed by Dan Milstein.
  
  Revision  Changes    Path
  1.11      +5 -2      jakarta-log4j/src/java/org/apache/log4j/NDC.java
  
  Index: NDC.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/NDC.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- NDC.java  2001/06/16 23:58:39     1.10
  +++ NDC.java  2001/07/18 06:03:15     1.11
  @@ -3,6 +3,9 @@
   //
   //      See the LICENCE file for the terms of usage and distribution.
   
  +
  +//      Contributors:      Dan Milstein 
  +
   package org.apache.log4j;
   
   import java.util.Hashtable;
  @@ -80,7 +83,7 @@
      thread, in particular to a child.
      
      @author Ceki Gülcü
  -   @since log4j v0.7.0
  +   @since 0.7.0
     
   */
    
  @@ -225,7 +228,7 @@
       
       synchronized(ht) {
         // Avoid calling clean-up too often.
  -      if(++pushCounter >= REAP_THRESHOLD) {
  +      if(++pushCounter <= REAP_THRESHOLD) {
        return; // We release the lock ASAP.
         } else {
        pushCounter = 0; // OK let's do some work.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to