< prev index next >

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

Print this page

        

*** 26,48 **** #include "gc/shared/allocTracer.hpp" #include "runtime/handles.hpp" #include "trace/tracing.hpp" #include "utilities/globalDefinitions.hpp" ! void AllocTracer::send_allocation_outside_tlab_event(KlassHandle klass, size_t alloc_size) { EventObjectAllocationOutsideTLAB event; if (event.should_commit()) { ! event.set_objectClass(klass()); event.set_allocationSize(alloc_size); event.commit(); } } ! void AllocTracer::send_allocation_in_new_tlab_event(KlassHandle klass, size_t tlab_size, size_t alloc_size) { EventObjectAllocationInNewTLAB event; if (event.should_commit()) { ! event.set_objectClass(klass()); event.set_allocationSize(alloc_size); event.set_tlabSize(tlab_size); event.commit(); } } --- 26,48 ---- #include "gc/shared/allocTracer.hpp" #include "runtime/handles.hpp" #include "trace/tracing.hpp" #include "utilities/globalDefinitions.hpp" ! void AllocTracer::send_allocation_outside_tlab_event(Klass* klass, size_t alloc_size) { EventObjectAllocationOutsideTLAB event; if (event.should_commit()) { ! event.set_objectClass(klass); event.set_allocationSize(alloc_size); event.commit(); } } ! void AllocTracer::send_allocation_in_new_tlab_event(Klass* klass, size_t tlab_size, size_t alloc_size) { EventObjectAllocationInNewTLAB event; if (event.should_commit()) { ! event.set_objectClass(klass); event.set_allocationSize(alloc_size); event.set_tlabSize(tlab_size); event.commit(); } }
< prev index next >