This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new c598bedf2e Add comment to aid future maintenance.
c598bedf2e is described below

commit c598bedf2e391c4f37b381b91f570148c938dd4e
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 6476bf08c5..58b97c6d8f 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -2242,6 +2242,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

Reply via email to