You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2026/10/07 12:49:05 UTC
(tomcat) 18/19: Revert change
This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 59fa28504208a73ca5b61d0fcdefc28769991450
Author: remm <re...@apache.org>
AuthorDate: Wed Oct 7 14:28:28 2026 +0200
Revert change
This was using Vector.
---
java/org/apache/catalina/manager/StatusManagerServlet.java | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/java/org/apache/catalina/manager/StatusManagerServlet.java b/java/org/apache/catalina/manager/StatusManagerServlet.java
index 1499f96062..194bd0093f 100644
--- a/java/org/apache/catalina/manager/StatusManagerServlet.java
+++ b/java/org/apache/catalina/manager/StatusManagerServlet.java
@@ -315,8 +315,8 @@ public class StatusManagerServlet extends HttpServlet implements NotificationLis
// by handleNotification() when connectors are registered or
// unregistered and StatusTransformer iterates them without
// holding the lists' monitor.
- StatusTransformer.writeConnectorsState(writer, mBeanServer, copyOf(threadPools),
- copyOf(globalRequestProcessors), copyOf(requestProcessors), mode, args);
+ StatusTransformer.writeConnectorsState(writer, mBeanServer, threadPools, globalRequestProcessors,
+ requestProcessors, mode, args);
if (request.getPathInfo() != null && request.getPathInfo().equals("/all")) {
// Note: Retrieving the full status is much slower
@@ -333,16 +333,6 @@ public class StatusManagerServlet extends HttpServlet implements NotificationLis
}
- // Takes a snapshot of a list created with Collections.synchronizedList().
- // The wrapper instance is its own lock, which is also acquired by the
- // add() and remove() calls in handleNotification().
- private static <T> List<T> copyOf(List<T> list) {
- synchronized (list) {
- return new ArrayList<>(list);
- }
- }
-
-
// ------------------------------------------- NotificationListener Methods
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org