< prev index next >

src/share/vm/gc/shared/allocTracer.cpp

Print this page
rev 9626 : 8065331: Add trace events for failed allocations

@@ -44,5 +44,14 @@
     event.set_allocationSize(alloc_size);
     event.set_tlabSize(tlab_size);
     event.commit();
   }
 }
+
+void AllocTracer::send_allocation_requiring_gc_event(size_t size, uint gcId) {
+  EventAllocationRequiringGC event;
+  if (event.should_commit()) {
+    event.set_gcId(gcId);
+    event.set_size(size);
+    event.commit();
+  }
+}
< prev index next >