31
31
32
32
class ShenandoahCollectorPolicy ;
33
33
class ShenandoahWorkerTimings ;
34
- class ShenandoahTerminationTimings ;
35
34
class outputStream ;
36
35
37
36
#define SHENANDOAH_GC_PHASE_DO (f ) \
@@ -92,10 +91,8 @@ class outputStream;
92
91
f(update_finish_queues, " U: Finish Queues" ) \
93
92
\
94
93
f(finish_queues, " Finish Queues" ) \
95
- f(termination, " Termination" ) \
96
94
f(weakrefs, " Weak References" ) \
97
95
f(weakrefs_process, " Process" ) \
98
- f(weakrefs_termination, " Termination" ) \
99
96
f(purge, " System Purge" ) \
100
97
f(purge_class_unload, " Unload Classes" ) \
101
98
f(purge_par, " Parallel Cleanup" ) \
@@ -244,7 +241,6 @@ class outputStream;
244
241
f(final_traversal_gc_string_dedup_table_roots, " TF: Dedup Table Roots" ) \
245
242
f(final_traversal_gc_string_dedup_queue_roots, " TF: Dedup Queue Roots" ) \
246
243
f(final_traversal_gc_finish_queues, " TF: Finish Queues" ) \
247
- f(final_traversal_gc_termination, " TF: Termination" ) \
248
244
\
249
245
/* Per-thread timer block, should have "roots" counters in consistent order */ \
250
246
f(final_traversal_update_roots, " Update Roots" ) \
@@ -300,10 +296,8 @@ class outputStream;
300
296
\
301
297
f(full_gc_mark, " Mark" ) \
302
298
f(full_gc_mark_finish_queues, " Finish Queues" ) \
303
- f(full_gc_mark_termination, " Termination" ) \
304
299
f(full_gc_weakrefs, " Weak References" ) \
305
300
f(full_gc_weakrefs_process, " Process" ) \
306
- f(full_gc_weakrefs_termination, " Termination" ) \
307
301
f(full_gc_purge, " System Purge" ) \
308
302
f(full_gc_purge_class_unload, " Unload Classes" ) \
309
303
f(full_gc_purge_par, " Parallel Cleanup" ) \
@@ -322,14 +316,12 @@ class outputStream;
322
316
/* Longer concurrent phases at the end */ \
323
317
f(conc_reset, " Concurrent Reset" ) \
324
318
f(conc_mark, " Concurrent Marking" ) \
325
- f(conc_termination, " Termination" ) \
326
319
f(conc_preclean, " Concurrent Precleaning" ) \
327
320
f(conc_roots, " Concurrent Roots" ) \
328
321
f(conc_evac, " Concurrent Evacuation" ) \
329
322
f(conc_update_refs, " Concurrent Update Refs" ) \
330
323
f(conc_cleanup, " Concurrent Cleanup" ) \
331
324
f(conc_traversal, " Concurrent Traversal" ) \
332
- f(conc_traversal_termination, " Termination" ) \
333
325
\
334
326
f(conc_uncommit, " Concurrent Uncommit" ) \
335
327
\
@@ -390,15 +382,13 @@ class ShenandoahPhaseTimings : public CHeapObj<mtGC> {
390
382
static const char * _phase_names[_num_phases];
391
383
392
384
ShenandoahWorkerTimings* _worker_times;
393
- ShenandoahTerminationTimings* _termination_times;
394
385
395
386
ShenandoahCollectorPolicy* _policy;
396
387
397
388
public:
398
389
ShenandoahPhaseTimings ();
399
390
400
391
ShenandoahWorkerTimings* const worker_times () const { return _worker_times; }
401
- ShenandoahTerminationTimings* const termination_times () const { return _termination_times; }
402
392
403
393
// record phase start
404
394
void record_phase_start (Phase phase);
@@ -438,19 +428,4 @@ class ShenandoahWorkerTimings : public CHeapObj<mtGC> {
438
428
void print () const ;
439
429
};
440
430
441
- class ShenandoahTerminationTimings : public CHeapObj <mtGC> {
442
- private:
443
- WorkerDataArray<double >* _gc_termination_phase;
444
- public:
445
- ShenandoahTerminationTimings (uint max_gc_threads);
446
-
447
- // record the time a phase took in seconds
448
- void record_time_secs (uint worker_i, double secs);
449
-
450
- double average () const ;
451
- void reset ();
452
-
453
- void print () const ;
454
- };
455
-
456
431
#endif // SHARE_GC_SHENANDOAH_SHENANDOAHPHASETIMINGS_HPP
0 commit comments