8056249: Improve CompletableFuture resource usage

Reviewed-by: psandoz, chegar, martin
2 files changed