--- old/src/share/vm/gc_implementation/shared/objectCountEventSender.hpp 2019-02-15 19:02:31.931025488 +0300 +++ new/src/share/vm/gc_implementation/shared/objectCountEventSender.hpp 2019-02-15 19:02:31.799030103 +0300 @@ -32,10 +32,17 @@ #if INCLUDE_SERVICES class KlassInfoEntry; -class Ticks; class ObjectCountEventSender : public AllStatic { + static bool _should_send_requestable_event; + + template + static void send_event_if_enabled(Klass* klass, GCId gc_id, jlong count, julong size, const Ticks& timestamp); + public: + static void enable_requestable_event(); + static void disable_requestable_event(); + static void send(const KlassInfoEntry* entry, GCId gc_id, const Ticks& timestamp); static bool should_send_event(); };