jetty.project/jetty-core
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-alpn next snapshot 2024-09-03 21:44:43 +10:00
jetty-bom next snapshot 2024-09-03 21:44:43 +10:00
jetty-client Issue #12256 - Configuring Virtual Thread executor in Jetty Http client makes my Spring Boot app freeze 2024-09-16 11:01:06 +03:00
jetty-demos next snapshot 2024-09-03 21:44:43 +10:00
jetty-deploy next snapshot 2024-09-03 21:44:43 +10:00
jetty-ee next snapshot 2024-09-03 21:44:43 +10:00
jetty-fcgi next snapshot 2024-09-03 21:44:43 +10:00
jetty-http Optimize request buffer release #12239 (#12240) 2024-09-18 07:11:32 +10:00
jetty-http-spi next snapshot 2024-09-03 21:44:43 +10:00
jetty-http-tools next snapshot 2024-09-03 21:44:43 +10:00
jetty-http2 Merge pull request #12245 from jetty/release/12.0.13 2024-09-11 09:45:12 -05:00
jetty-http3 next snapshot 2024-09-03 21:44:43 +10:00
jetty-io Fixed #12284 - Excessive heap consumption by SSLSessionImpl by Jetty Server with TLS 1.3 and long-lived client. 2024-09-20 16:41:15 +03:00
jetty-jmx next snapshot 2024-09-03 21:44:43 +10:00
jetty-jndi next snapshot 2024-09-03 21:44:43 +10:00
jetty-keystore next snapshot 2024-09-03 21:44:43 +10:00
jetty-maven Issue #12279 ensure handlers added correctly for maven plugin (#12282) 2024-09-19 09:38:08 +10:00
jetty-openid next snapshot 2024-09-03 21:44:43 +10:00
jetty-osgi next snapshot 2024-09-03 21:44:43 +10:00
jetty-plus next snapshot 2024-09-03 21:44:43 +10:00
jetty-proxy next snapshot 2024-09-03 21:44:43 +10:00
jetty-quic next snapshot 2024-09-03 21:44:43 +10:00
jetty-rewrite next snapshot 2024-09-03 21:44:43 +10:00
jetty-security next snapshot 2024-09-03 21:44:43 +10:00
jetty-server Fixes #12289 - Improve ConcurrentPool concurrency. (#12290) 2024-09-20 15:50:39 +02:00
jetty-session next snapshot 2024-09-03 21:44:43 +10:00
jetty-slf4j-impl next snapshot 2024-09-03 21:44:43 +10:00
jetty-start next snapshot 2024-09-03 21:44:43 +10:00
jetty-tests Merge pull request #12245 from jetty/release/12.0.13 2024-09-11 09:45:12 -05:00
jetty-unixdomain-server next snapshot 2024-09-03 21:44:43 +10:00
jetty-util Fixes #12289 - Improve ConcurrentPool concurrency. (#12290) 2024-09-20 15:50:39 +02:00
jetty-util-ajax next snapshot 2024-09-03 21:44:43 +10:00
jetty-websocket next snapshot 2024-09-03 21:44:43 +10:00
jetty-xml next snapshot 2024-09-03 21:44:43 +10:00
pom.xml next snapshot 2024-09-03 21:44:43 +10:00