--- old/src/share/vm/gc/shared/referenceProcessorPhaseTimes.hpp 2017-08-03 16:11:14.049642893 -0700 +++ new/src/share/vm/gc/shared/referenceProcessorPhaseTimes.hpp 2017-08-03 16:11:13.949642897 -0700 @@ -28,6 +28,7 @@ #include "gc/shared/referenceProcessorStats.hpp" #include "gc/shared/workerDataArray.inline.hpp" #include "memory/referenceType.hpp" +#include "utilities/ticks.hpp" class DiscoveredList; class GCTimer; @@ -96,13 +97,11 @@ double balance_queues_time_ms(ReferenceType ref_type) const; - bool processing_is_mt() const { return _processing_is_mt; } - - void print_reference(ReferenceType ref_type, uint base_indent); - void print_phase(RefProcParPhases phase, uint indent); + void print_reference(ReferenceType ref_type, uint base_indent) const; + void print_phase(RefProcParPhases phase, uint indent) const; public: - ReferenceProcessorPhaseTimes(GCTimer* gc_timer, uint max_gc_threads, bool processing_is_mt); + ReferenceProcessorPhaseTimes(GCTimer* gc_timer, uint max_gc_threads); ~ReferenceProcessorPhaseTimes(); static double uninitialized() { return -1.0; } @@ -134,8 +133,8 @@ // Reset all fields. If not reset at next cycle, an assertion will fail. void reset(); - void print_enqueue_phase(uint base_indent = 0, bool print_total = true); - void print_all_references(uint base_indent = 0, bool print_total = true); + void print_enqueue_phase(uint base_indent = 0, bool print_total = true) const; + void print_all_references(uint base_indent = 0, bool print_total = true) const; }; // Updates working time of each worker thread.