From 3a9fb20c664281ada89a616323e67a21bd07a843 Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 8 Feb 2010 22:20:55 +0000 Subject: [PATCH] Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48170 Remove unnecessary syncs that cause issues under heavy load git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@907825 13f79535-47bb-0310-9956-ffa450edef68 --- java/javax/servlet/jsp/JspFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/javax/servlet/jsp/JspFactory.java b/java/javax/servlet/jsp/JspFactory.java index 6deb49dd1..248f8c5f7 100644 --- a/java/javax/servlet/jsp/JspFactory.java +++ b/java/javax/servlet/jsp/JspFactory.java @@ -43,7 +43,7 @@ import javax.servlet.jsp.PageContext; public abstract class JspFactory { - private static JspFactory deflt = null; + private static volatile JspFactory deflt = null; /** * Sole constructor. (For invocation by subclass constructors, @@ -62,7 +62,7 @@ public abstract class JspFactory { * @param deflt The default factory implementation */ - public static synchronized void setDefaultFactory(JspFactory deflt) { + public static void setDefaultFactory(JspFactory deflt) { JspFactory.deflt = deflt; } @@ -72,7 +72,7 @@ public abstract class JspFactory { * @return the default factory for this implementation */ - public static synchronized JspFactory getDefaultFactory() { + public static JspFactory getDefaultFactory() { return deflt; } -- 2.11.0