avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosu...@apache.org
Subject cvs commit: avalon-logkit/src/java/org/apache/log/output AsyncLogTarget.java
Date Wed, 26 Feb 2003 09:53:11 GMT
leosutic    2003/02/26 01:53:11

  Modified:    src/java/org/apache/log/output AsyncLogTarget.java
  Log:
  Fixed a deadlock. See
  
      http://marc.theaimsgroup.com/?l=avalon-dev&m=104496210014916&w=2
  
  for a description of the problem. Holding off on the second problem (the closing
  of log targets).
  
  Revision  Changes    Path
  1.14      +2 -1      avalon-logkit/src/java/org/apache/log/output/AsyncLogTarget.java
  
  Index: AsyncLogTarget.java
  ===================================================================
  RCS file: /home/cvs/avalon-logkit/src/java/org/apache/log/output/AsyncLogTarget.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- AsyncLogTarget.java	9 Feb 2003 23:33:23 -0000	1.13
  +++ AsyncLogTarget.java	26 Feb 2003 09:53:11 -0000	1.14
  @@ -132,7 +132,7 @@
       {
           synchronized( m_list )
           {
  -            final int size = m_list.size();
  +            int size = m_list.size();
               while( m_queueSize <= size )
               {
                   try
  @@ -145,6 +145,7 @@
                       //Maybe we should log it though for
                       //now lets ignore it
                   }
  +                size = m_list.size();
               }
   
               m_list.addFirst( event );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message