RFR: 8273608: Deadlock when jcmd of OnError attaches to itself
Xin Liu
xliu at openjdk.java.net
Thu Oct 7 07:12:11 UTC 2021
On Thu, 7 Oct 2021 04:17:13 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> > 1. `HeapDumpOnOutOfMemoryError` can't cover OOME from Java world and thread exhaustion.
>
> What do you mean with "java world"? About thread exhaustion, you are right. We tried to fix this but run into "works as designed" arguments. We do this downstream in SapMachine though, so worst thing you could just take over your patch for Coretto too (see https://github.com/SAP/SapMachine/blob/d574d26282fd2e67aa242de176bbe6cdc1e41205/src/hotspot/share/prims/jvm.cpp#L2920).
>
HeapDumpOnOutOfMemoryError won't react OOME thrown from Java libraries. [JDK-8257790](https://bugs.openjdk.java.net/browse/JDK-8257790). eg. `java.nio.ByteBuffer.allocateDirect(size)` may throw OOME just like thread exhaustion.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5590
More information about the hotspot-dev
mailing list