Skip to content

Commit ee2f205

Browse files
committed
8260926: Trace resource exhausted events unconditionally
Reviewed-by: dholmes, coleenp
1 parent 1e0a101 commit ee2f205

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hotspot/share/prims/jvmtiExport.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,9 @@ void JvmtiExport::post_resource_exhausted(jint resource_exhausted_flags, const c
15061506

15071507
JavaThread *thread = JavaThread::current();
15081508

1509+
log_error(jvmti)("Posting Resource Exhausted event: %s",
1510+
description != nullptr ? description : "unknown");
1511+
15091512
// JDK-8213834: handlers of ResourceExhausted may attempt some analysis
15101513
// which often requires running java.
15111514
// This will cause problems on threads not able to run java, e.g. compiler

0 commit comments

Comments
 (0)