[jdk17u-dev] RFR: 8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v2]

Goetz Lindenmaier goetz at openjdk.org
Mon Oct 28 13:20:30 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

You need to add the second bugID to this change and request approval for that, too. Use the \issue command for this, please.

-------------

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/3000#issuecomment-2441563386


More information about the jdk-updates-dev mailing list