Skip to content
Permalink
Browse files
8260926: Trace resource exhausted events unconditionally
Reviewed-by: dholmes, coleenp
  • Loading branch information
tstuefe committed Feb 5, 2021
1 parent 1e0a101 commit ee2f2055298152090b980e4b46053a720bae316f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/hotspot/share/prims/jvmtiExport.cpp
@@ -1506,6 +1506,9 @@ void JvmtiExport::post_resource_exhausted(jint resource_exhausted_flags, const c

JavaThread *thread = JavaThread::current();

log_error(jvmti)("Posting Resource Exhausted event: %s",
description != nullptr ? 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

0 comments on commit ee2f205

Please sign in to comment.