< prev index next >

src/share/vm/gc/shared/referenceProcessorPhaseTimes.hpp

Print this page

        

@@ -26,10 +26,11 @@
 #define SHARE_VM_GC_SHARED_REFERENCEPROCESSORPHASETIMES_HPP
 
 #include "gc/shared/referenceProcessorStats.hpp"
 #include "gc/shared/workerDataArray.inline.hpp"
 #include "memory/referenceType.hpp"
+#include "utilities/ticks.hpp"
 
 class DiscoveredList;
 class GCTimer;
 
 class ReferenceProcessorPhaseTimes : public CHeapObj<mtGC> {

@@ -94,17 +95,15 @@
   size_t ref_cleared(ReferenceType ref_type) const;
   size_t ref_enqueued(ReferenceType ref_type) const;
 
   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; }
 
   WorkerDataArray<double>* worker_time_sec(RefProcParPhases phase) const;

@@ -132,12 +131,12 @@
   GCTimer* gc_timer() const { return _gc_timer; }
 
   // 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.
 class RefProcWorkerTimeTracker : public StackObj {
 protected:
< prev index next >