Summary: | Unnecessary synchronization caused by JspFactory.getDefaultFactory while servicing JSPs | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Arvind Srinivasan <arvind.srinivasan> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | P4 | ||
Version: | unspecified | ||
Target Milestone: | default | ||
Hardware: | All | ||
OS: | Solaris | ||
Attachments: |
Patch to avoid invoking JspFactory.getDefaultFactory in jspService
Difference in the generated code for hello_jsp.java before and after the patch |
Description
Arvind Srinivasan
2007-02-07 06:03:18 UTC
Created attachment 19537 [details]
Patch to avoid invoking JspFactory.getDefaultFactory in jspService
The attached patch changes the .jsp-->.java generator so that
JspFactory.getDefaultFactory is invoked as a one-time operation.
The patch also consolidates JspFactory initialization in JspRuntimeContext.
Created attachment 19538 [details]
Difference in the generated code for hello_jsp.java before and after the patch
I did not realize this method was synchronized, so thanks for mentioning it. There doesn't seem to be any reason for that. |