> Make `MinimalFuture` cancelation atomic. This prevents HTTP request > cancelation logic from racily completing the future with an error. > > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Benjamin Peterson has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision: - sharpen testPostSendAsync assertion like testGetSendAsync - add assert isDone - add testCancel - Merge branch 'master' into httpclient-cancel-race - 8380967: Canceled HttpClient.sendAsync futures throw inconsistent exceptions Make `MinimalFuture` cancelation atomic. This prevents HTTP request cancelation logic from racily completing the future with an error. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/31758/files - new: https://git.openjdk.org/jdk/pull/31758/files/4e963c97..d39ef481 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=31758&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31758&range=00-01 Stats: 1238 lines in 76 files changed: 834 ins; 194 del; 210 mod Patch: https://git.openjdk.org/jdk/pull/31758.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31758/head:pull/31758 PR: https://git.openjdk.org/jdk/pull/31758
