This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new d9bed19d98 Add comment to aid future maintenance. d9bed19d98 is described below commit d9bed19d982e186ce8e9c92005f60f5ab287138c Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Jul 4 18:20:46 2023 +0100 Add comment to aid future maintenance. --- java/org/apache/catalina/core/StandardContext.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/org/apache/catalina/core/StandardContext.java b/java/org/apache/catalina/core/StandardContext.java index f093341d09..b80cd0a001 100644 --- a/java/org/apache/catalina/core/StandardContext.java +++ b/java/org/apache/catalina/core/StandardContext.java @@ -2250,6 +2250,10 @@ public class StandardContext extends ContainerBase implements Context, Notificat */ @Override public ServletContext getServletContext() { + /* + * This method is called (multiple times) during context start which is single threaded so there is concurrency + * issue here. + */ if (context == null) { context = new ApplicationContext(this); if (altDDName != null) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org