< prev index next >

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

Print this page
rev 9681 : 8065331: Add trace events for failed allocations
rev 9682 : imported patch rev


  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 }


  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) {
  51   EventAllocationRequiringGC event;
  52   if (event.should_commit()) {

  53     event.set_size(size);
  54     event.commit();
  55   }
  56 }
< prev index next >