You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/07/11 22:07:22 UTC
DO NOT REPLY [Bug 10563] -
Multiple compiles for multiple requests
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10563>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10563
Multiple compiles for multiple requests
------- Additional Comments From H.Zeller@acm.org 2002-07-11 20:07 -------
Probably better in JspCompilationContext, since there is the place, where
the isOutDated() is checked. And: it should be synchronized with the
jspCompiler object, not the Compiler.class, since this would serialize
compilation completely; synchronizing the compiler will only serialize
attempts to compile the same file.
----------[ from JspCompilationContext.compile() ] --
if (jspCompiler.isOutDated()) {
try {
synchronized (jspCompiler) {
if (jspCompiler.isOutDated()) {
jspCompiler.compile();
reload = true;
}
}
} catch (Exception ex) {
//....
}
}
-------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>