tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Handler.java
Date Sun, 05 Nov 2000 03:55:51 GMT
craigmcc    00/11/04 19:55:50

  Modified:    src/share/org/apache/tomcat/core Tag: tomcat_32 Handler.java
  Log:
  Eliminiate the performance impact of locking on every request to avoid
  the race condition.  Thanks to Sam Ruby for pointing this out.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.4   +6 -4      jakarta-tomcat/src/share/org/apache/tomcat/core/Handler.java
  
  Index: Handler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Handler.java,v
  retrieving revision 1.7.2.3
  retrieving revision 1.7.2.4
  diff -u -r1.7.2.3 -r1.7.2.4
  --- Handler.java	2000/11/05 03:36:04	1.7.2.3
  +++ Handler.java	2000/11/05 03:55:50	1.7.2.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Handler.java,v 1.7.2.3
2000/11/05 03:36:04 craigmcc Exp $
  - * $Revision: 1.7.2.3 $
  - * $Date: 2000/11/05 03:36:04 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Handler.java,v 1.7.2.4
2000/11/05 03:55:50 craigmcc Exp $
  + * $Revision: 1.7.2.4 $
  + * $Date: 2000/11/05 03:55:50 $
    *
    * ====================================================================
    *
  @@ -246,7 +246,8 @@
       public void service(Request req, Response res) 
           throws IOException, ServletException
       {
  -      synchronized(this) {
  +      if (! initialized ) {    
  +       synchronized(this) {
   	if( ! initialized ) {
   	    try {
   		init();
  @@ -272,6 +273,7 @@
   		return;
   	    }
   	}
  +       }
         }
   
   	if( ! internal )
  
  
  

Mime
View raw message