We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1652948 commit 83d0bd8Copy full SHA for 83d0bd8
src/hotspot/share/gc/shared/memAllocator.cpp
@@ -126,6 +126,10 @@ bool MemAllocator::Allocation::check_out_of_memory() {
126
// -XX:+HeapDumpOnOutOfMemoryError and -XX:OnOutOfMemoryError support
127
report_java_out_of_memory(message);
128
if (JvmtiExport::should_post_resource_exhausted()) {
129
+#ifdef CHECK_UNHANDLED_OOPS
130
+ // obj is null, no need to handle, but CheckUnhandledOops is not aware about null
131
+ THREAD->allow_unhandled_oop(_obj_ptr);
132
+#endif // CHECK_UNHANDLED_OOPS
133
JvmtiExport::post_resource_exhausted(
134
JVMTI_RESOURCE_EXHAUSTED_OOM_ERROR | JVMTI_RESOURCE_EXHAUSTED_JAVA_HEAP,
135
message);
0 commit comments