RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors

Viktor Klang vklang at openjdk.org
Mon Aug 12 16:05:31 UTC 2024


On Mon, 12 Aug 2024 15:57:42 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Or use (Error | RuntimeException ex)?
>
> That would be okay too as there are no checked exceptions here.

@AlanBateman If we really want it airtight I think we need to catch Throwable and sneaky-rethrow it? 🤔

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20548#discussion_r1714047111


More information about the core-libs-dev mailing list