< prev index next >

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

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


  29 #include "utilities/globalDefinitions.hpp"
  30 
  31 void AllocTracer::send_allocation_outside_tlab_event(KlassHandle klass, size_t alloc_size) {
  32   EventAllocObjectOutsideTLAB event;
  33   if (event.should_commit()) {
  34     event.set_class(klass());
  35     event.set_allocationSize(alloc_size);
  36     event.commit();
  37   }
  38 }
  39 
  40 void AllocTracer::send_allocation_in_new_tlab_event(KlassHandle klass, size_t tlab_size, size_t alloc_size) {
  41   EventAllocObjectInNewTLAB event;
  42   if (event.should_commit()) {
  43     event.set_class(klass());
  44     event.set_allocationSize(alloc_size);
  45     event.set_tlabSize(tlab_size);
  46     event.commit();
  47   }
  48 }











  29 #include "utilities/globalDefinitions.hpp"
  30 
  31 void AllocTracer::send_allocation_outside_tlab_event(KlassHandle klass, size_t alloc_size) {
  32   EventAllocObjectOutsideTLAB event;
  33   if (event.should_commit()) {
  34     event.set_class(klass());
  35     event.set_allocationSize(alloc_size);
  36     event.commit();
  37   }
  38 }
  39 
  40 void AllocTracer::send_allocation_in_new_tlab_event(KlassHandle klass, size_t tlab_size, size_t alloc_size) {
  41   EventAllocObjectInNewTLAB event;
  42   if (event.should_commit()) {
  43     event.set_class(klass());
  44     event.set_allocationSize(alloc_size);
  45     event.set_tlabSize(tlab_size);
  46     event.commit();
  47   }
  48 }
  49 
  50 void AllocTracer::send_allocation_requiring_gc_event(size_t size, uint gcId) {
  51   EventAllocationRequiringGC event;
  52   if (event.should_commit()) {
  53     event.set_gcId(gcId);
  54     event.set_size(size);
  55     event.commit();
  56   }
  57 }
< prev index next >