[jdk17u-dev] RFR: 8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v2]
Paul Hohensee
phh at openjdk.org
Wed Oct 30 14:55:17 UTC 2024
On Fri, 25 Oct 2024 22:16:36 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.
>
> Ben Taylor has updated the pull request incrementally with one additional commit since the last revision:
>
> Backport 6f67abd352ce9605dd93188995d42a47ee07b25e
This isn't clean because the version of CompleteableFutureOrTimeoutExceptionallyTest.java is different from that in the original commit.
-------------
PR Review: https://git.openjdk.org/jdk17u-dev/pull/3000#pullrequestreview-2405209387
More information about the jdk-updates-dev
mailing list