https://issues.apache.org/bugzilla/show_bug.cgi?id=48170

--- Comment #3 from Earl Nolan <earl.no...@nfl.com> 2009-11-11 09:27:26 UTC ---
The simplest approach is to change the static member variable declaration:

private static volatile JspFactory deflt = null;

and then remove the synchronized keyword on the getter/setter.

This preserves the existing multi-threaded guarantees while not incurring the
monitor overhead.  If effect, exchanging a monitor for a memory latch.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to