[jdk17u-dev] Integrated: 8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally
Ben Taylor
btaylor at openjdk.org
Mon Nov 11 20:48:06 UTC 2024
On Wed, 23 Oct 2024 22:14:19 GMT, Ben Taylor <btaylor at openjdk.org> wrote:
> Clean backport of a patch to prevent `CompleteableFuture.orTimeout` from leaking when a `ScheduledFutureTask` exits exceptionally
>
> Passes the included test as well as jtreg tier 1 locally on linux x86_64
>
> Updated to include JDK-8304557, which is a follow up item to prevent the test from timing out, see @RealCLanger's comment below. That backport is also clean.
This pull request has now been integrated.
Changeset: 41b4812c
Author: Ben Taylor <btaylor at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/41b4812c2409c9867d9fc2f60777706d07a95875
Stats: 84 lines in 2 files changed: 83 ins; 0 del; 1 mod
8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally
8304557: java/util/concurrent/CompletableFuture/CompletableFutureOrTimeoutExceptionallyTest.java times out
Reviewed-by: phh
Backport-of: ded6a8131970ac2f7ae59716769e6f6bae3b809a
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/3000
More information about the jdk-updates-dev
mailing list