This fixes a deadlock between the thread that reads from the RequestBodyInputStream and the thread that tries to close it in response to a stream reset. See the linked JBS ticket for details.
Tier1 and tier2 tests continue to pass. I verified that with this change there are no busy threads at the end of the test. ------------- Commit messages: - Remove excessive locking Changes: https://git.openjdk.org/jdk/pull/29448/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29448&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8376479 Stats: 56 lines in 1 file changed: 14 ins; 20 del; 22 mod Patch: https://git.openjdk.org/jdk/pull/29448.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/29448/head:pull/29448 PR: https://git.openjdk.org/jdk/pull/29448
