This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 61d541658c Add comment to aid future maintenance.
61d541658c is described below
commit 61d541658c10222fb02e9e3c687381f23e9243c8
Author: Mark Thomas <[email protected]>
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 c4195b1fa6..3d03b12d97 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -2210,6 +2210,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: [email protected]
For additional commands, e-mail: [email protected]