This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 6ce6e3d389 Add comment to aid future maintenance. 6ce6e3d389 is described below commit 6ce6e3d3895af587e75a795b698d1b3b2a7f0aa0 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 428aaa702c..b89bd9110f 100644 --- a/java/org/apache/catalina/core/StandardContext.java +++ b/java/org/apache/catalina/core/StandardContext.java @@ -2171,6 +2171,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