jetty.project/jetty-ee10
Simone Bordet 115ee1cf39
Fixes #12289 - Improve ConcurrentPool concurrency. (#12290)
A call to `sweep()`, although protected by the lock for concurrent calls to `reserve()`, may be concurrent with `remove(Entry)`.

`remove(Entry)` in turn calls `entries.remove(Object)`, so that the concurrent iteration in `sweep()` over `entries` fails with an `ArrayIndexOutOfBoundsException`.

Now using the bulk `entries.removeIf(Predicate)` method in `sweep()`, so that sweeping is atomic with respect to `entries.remove(Object)`.

Fixed other occurrences of manual iteration over CopyOnWriteArrayList that may be concurrent with removals.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2024-09-20 15:50:39 +02:00
..
jetty-ee10-annotations next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-apache-jsp next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-bom next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-cdi next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-demos next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-examples next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-fcgi-proxy next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-glassfish-jstl next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-home next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-jaspi next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-jndi next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-jspc-maven-plugin next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-maven-plugin next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-osgi next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-plus next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-proxy next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-quickstart next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-runner next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-servlet Fixes #12289 - Improve ConcurrentPool concurrency. (#12290) 2024-09-20 15:50:39 +02:00
jetty-ee10-servlets next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-tests Merge pull request #12245 from jetty/release/12.0.13 2024-09-11 09:45:12 -05:00
jetty-ee10-webapp next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee10-websocket Merge pull request #12245 from jetty/release/12.0.13 2024-09-11 09:45:12 -05:00
pom.xml next snapshot 2024-09-03 21:44:43 +10:00