On Wed, 13 Jul 2022 16:58:21 GMT, Doug Lea <d...@openjdk.org> wrote:

>> 8066859 : java/lang/ref/OOMEInReferenceHandler.java failed with 
>> java.lang.Exception: Reference Handler thread died
>
> Doug Lea has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   copyright header

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

> 1247:             // fall through if encountered OutOfMemoryError
> 1248:             if (!isHeldExclusively() || !release(savedState = 
> getState()))
> 1249:                 throw new IllegalMonitorStateException();

I still don't see how an OOME can possibly indicate we might somehow be in a 
state where we need to throw IMSE!

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

PR: https://git.openjdk.org/jdk/pull/9427

Reply via email to