On Tue, 20 Aug 2024 11:53:20 GMT, Alan Bateman <al...@openjdk.org> wrote:

>> One option is to record the first encountered exception instance, which can 
>> then be rethrown once acquire succeeds?
>
> Object.wait and Condition.await are unusual in that they must reacquire they 
> continue, even if they throw. So might not be crazy for the cases where it 
> does recover (I assume some cases will never recover and it will retry 
> indefinitely).

@DougLea What do you think about storing the initial exception and rethrowing 
it on an eventual retry success?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20602#discussion_r1723639098

Reply via email to