rev 9681 : 8065331: Add trace events for failed allocations rev 9682 : imported patch rev
@@ -44,5 +44,13 @@ event.set_allocationSize(alloc_size); event.set_tlabSize(tlab_size); event.commit(); } } + +void AllocTracer::send_allocation_requiring_gc_event(size_t size) { + EventAllocationRequiringGC event; + if (event.should_commit()) { + event.set_size(size); + event.commit(); + } +}