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

Viktor Klang vklang at openjdk.org
Mon Aug 12 16:11:46 UTC 2024


On Mon, 12 Aug 2024 16:08:31 GMT, Viktor Klang <vklang at openjdk.org> wrote:

>> 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors
>
> Viktor Klang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Catching both Error and RuntimeException

src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java line 381:

> 379:                     else
> 380:                         break;
> 381:                 } catch (Error | RuntimeException ex) {

@DougLea @AlanBateman Changed to Error | RuntimeException here and for AQS

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

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


More information about the core-libs-dev mailing list