diff -r c96395a3945a src/hotspot/share/prims/jvmtiExport.cpp --- a/src/hotspot/share/prims/jvmtiExport.cpp Wed Apr 21 06:49:42 2021 +0100 +++ b/src/hotspot/share/prims/jvmtiExport.cpp Wed Apr 21 10:06:43 2021 +0200 @@ -1475,6 +1475,9 @@ JavaThread *thread = JavaThread::current(); + log_error(jvmti)("Posting Resource Exhausted event: %s", + description != NULL ? description : "unknown"); + // JDK-8213834: handlers of ResourceExhausted may attempt some analysis // which often requires running java. // This will cause problems on threads not able to run java, e.g. compiler