1.1 --- a/src/share/vm/jfr/leakprofiler/checkpoint/objectSampleCheckpoint.hpp Fri Sep 27 13:23:32 2019 +0800 1.2 +++ b/src/share/vm/jfr/leakprofiler/checkpoint/objectSampleCheckpoint.hpp Wed Oct 09 16:11:58 2019 +0800 1.3 @@ -26,25 +26,26 @@ 1.4 #define SHARE_VM_LEAKPROFILER_CHECKPOINT_OBJECTSAMPLECHECKPOINT_HPP 1.5 1.6 #include "memory/allocation.hpp" 1.7 -#include "utilities/exceptions.hpp" 1.8 1.9 class EdgeStore; 1.10 +class JfrCheckpointWriter; 1.11 class JfrStackTraceRepository; 1.12 -class JfrCheckpointWriter; 1.13 class ObjectSampleMarker; 1.14 +class ObjectSampler; 1.15 1.16 class ObjectSampleCheckpoint : AllStatic { 1.17 public: 1.18 - static void install(JfrCheckpointWriter& writer, bool class_unload, bool resume); 1.19 - static void write(const EdgeStore* edge_store, bool emit_all, Thread* thread); 1.20 - static int mark(ObjectSampleMarker& marker, bool emit_all); 1.21 + static void install(JfrCheckpointWriter& writer, bool class_unload, bool type_set); 1.22 + static void write(ObjectSampler* sampler, EdgeStore* edge_store, bool emit_all, Thread* thread); 1.23 + static int mark(ObjectSampler* sampler, ObjectSampleMarker& marker, bool emit_all); 1.24 }; 1.25 1.26 class WriteObjectSampleStacktrace : public StackObj { 1.27 private: 1.28 + ObjectSampler* const _sampler; 1.29 JfrStackTraceRepository& _stack_trace_repo; 1.30 public: 1.31 - WriteObjectSampleStacktrace(JfrStackTraceRepository& repo); 1.32 + WriteObjectSampleStacktrace(ObjectSampler* sampler, JfrStackTraceRepository& repo); 1.33 bool process(); 1.34 }; 1.35