tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Ruby/Raleigh/IBM" <ru...@us.ibm.com>
Subject Re: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Handler.java
Date Sun, 05 Nov 2000 03:44:42 GMT
>      public void service(Request req, Response res)
>          throws IOException, ServletException
>      {
> +      synchronized(this) {
>    if( ! initialized ) {
>        try {
>         init();
> @@ -271,6 +272,7 @@
>         return;
>        }
>    }
> +      }

This looks significant from a performance perspective.  Wouldn't it be
better if an _additional_ if (!initialized) were added prior to the
synchronized?

- Sam Ruby


Mime
View raw message