tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Compiler.java
Date Thu, 24 Oct 2002 11:55:57 GMT
remm        2002/10/24 04:55:57

  Modified:    jasper2/src/share/org/apache/jasper/compiler Tag:
                        tomcat_4_branch Compiler.java
  Log:
  - Port javac syncing patch.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.18.2.7  +10 -4     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java
  
  Index: Compiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java,v
  retrieving revision 1.18.2.6
  retrieving revision 1.18.2.7
  diff -u -r1.18.2.6 -r1.18.2.7
  --- Compiler.java	16 Sep 2002 13:39:20 -0000	1.18.2.6
  +++ Compiler.java	24 Oct 2002 11:55:57 -0000	1.18.2.7
  @@ -109,6 +109,10 @@
   
       }
   
  +    // Some javac are not thread safe; use a lock to serialize compilation, 
  +    static Object javacLock = new Object();
  +
  +
       // ----------------------------------------------------- Instance Variables
   
   
  @@ -288,7 +292,9 @@
           includes.setName(ctxt.getJspPath());
   
           try {
  -            javac.execute();
  +            synchronized(javacLock) {
  +                javac.execute();
  +            }
           } catch (BuildException e) {
               success = false;
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message