RFR: 8066859: java/lang/ref/OOMEInReferenceHandler.java failed with java.lang.Exception: Reference Handler thread died [v4]

David Holmes dholmes at openjdk.org
Wed Jul 13 21:48:05 UTC 2022


On Wed, 13 Jul 2022 16:58:21 GMT, Doug Lea <dl at 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


More information about the core-libs-dev mailing list