comparison src/share/vm/gc_implementation/shared/objectCountEventSender.cpp @ 13400:86e6d691f2e1

8028128: Add a type safe alternative for working with counter based data Reviewed-by: dholmes, egahlin
author mgronlun
date Sat, 23 Nov 2013 12:25:13 +0100
parents 274ce305e5b9
children 0982ec23da03
comparison
equal deleted inserted replaced
13399:260ac69dc096 13400:86e6d691f2e1
26 #include "precompiled.hpp" 26 #include "precompiled.hpp"
27 #include "gc_implementation/shared/objectCountEventSender.hpp" 27 #include "gc_implementation/shared/objectCountEventSender.hpp"
28 #include "memory/heapInspection.hpp" 28 #include "memory/heapInspection.hpp"
29 #include "trace/tracing.hpp" 29 #include "trace/tracing.hpp"
30 #include "utilities/globalDefinitions.hpp" 30 #include "utilities/globalDefinitions.hpp"
31 #include "utilities/ticks.hpp"
31 32
32 #if INCLUDE_SERVICES 33 #if INCLUDE_SERVICES
33 34
34 void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id, jlong timestamp) { 35 void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id, const Ticks& timestamp) {
35 #if INCLUDE_TRACE 36 #if INCLUDE_TRACE
36 assert(Tracing::is_event_enabled(EventObjectCountAfterGC::eventId), 37 assert(Tracing::is_event_enabled(EventObjectCountAfterGC::eventId),
37 "Only call this method if the event is enabled"); 38 "Only call this method if the event is enabled");
38 39
39 EventObjectCountAfterGC event(UNTIMED); 40 EventObjectCountAfterGC event(UNTIMED);