33
33
class ShenandoahCollectorPolicy ;
34
34
class outputStream ;
35
35
36
- #define SHENANDOAH_GC_PAR_PHASE_DO (CNT_PREFIX, DESC_PREFIX, f ) \
36
+ #define SHENANDOAH_PAR_PHASE_DO (CNT_PREFIX, DESC_PREFIX, f ) \
37
37
f (CNT_PREFIX ## TotalWork, DESC_PREFIX " <total>" ) \
38
38
f(CNT_PREFIX ## ThreadRoots, DESC_PREFIX " Thread Roots" ) \
39
39
f(CNT_PREFIX ## CodeCacheRoots, DESC_PREFIX " Code Cache Roots" ) \
@@ -56,15 +56,15 @@ class outputStream;
56
56
f(CNT_PREFIX ## FinishQueues, DESC_PREFIX " Finish Queues" ) \
57
57
// end
58
58
59
- #define SHENANDOAH_GC_PHASE_DO (f ) \
59
+ #define SHENANDOAH_PHASE_DO (f ) \
60
60
f (conc_reset, " Concurrent Reset" ) \
61
61
\
62
62
f(init_mark_gross, " Pause Init Mark (G)" ) \
63
63
f(init_mark, " Pause Init Mark (N)" ) \
64
64
f(make_parsable, " Make Parsable" ) \
65
65
f(init_update_region_states, " Update Region States" ) \
66
66
f(scan_roots, " Scan Roots" ) \
67
- SHENANDOAH_GC_PAR_PHASE_DO (scan_, " S: " , f) \
67
+ SHENANDOAH_PAR_PHASE_DO (scan_, " S: " , f) \
68
68
f(resize_tlabs, " Resize TLABs" ) \
69
69
\
70
70
f(conc_mark, " Concurrent Marking" ) \
@@ -73,22 +73,22 @@ class outputStream;
73
73
f(final_mark_gross, " Pause Final Mark (G)" ) \
74
74
f(final_mark, " Pause Final Mark (N)" ) \
75
75
f(update_roots, " Update Roots" ) \
76
- SHENANDOAH_GC_PAR_PHASE_DO (update_, " U: " , f) \
76
+ SHENANDOAH_PAR_PHASE_DO (update_, " U: " , f) \
77
77
f(finish_queues, " Finish Queues" ) \
78
78
f(weakrefs, " Weak References" ) \
79
79
f(weakrefs_process, " Process" ) \
80
80
f(purge, " System Purge" ) \
81
81
f(purge_class_unload, " Unload Classes" ) \
82
- SHENANDOAH_GC_PAR_PHASE_DO (purge_cu_par_, " CU: " , f) \
82
+ SHENANDOAH_PAR_PHASE_DO (purge_cu_par_, " CU: " , f) \
83
83
f(purge_weak_par, " Weak Roots" ) \
84
- SHENANDOAH_GC_PAR_PHASE_DO (purge_weak_par_, " WR: " , f) \
84
+ SHENANDOAH_PAR_PHASE_DO (purge_weak_par_, " WR: " , f) \
85
85
f(purge_cldg, " CLDG" ) \
86
86
f(final_update_region_states, " Update Region States" ) \
87
87
f(retire_tlabs, " Retire TLABs" ) \
88
88
f(choose_cset, " Choose Collection Set" ) \
89
89
f(final_rebuild_freeset, " Rebuild Free Set" ) \
90
90
f(init_evac, " Initial Evacuation" ) \
91
- SHENANDOAH_GC_PAR_PHASE_DO (evac_, " E: " , f) \
91
+ SHENANDOAH_PAR_PHASE_DO (evac_, " E: " , f) \
92
92
\
93
93
f(conc_weak_roots, " Concurrent Weak Roots" ) \
94
94
f(conc_cleanup_early, " Concurrent Cleanup" ) \
@@ -106,7 +106,7 @@ class outputStream;
106
106
f(final_update_refs, " Pause Final Update Refs (N)" ) \
107
107
f(final_update_refs_finish_work, " Finish Work" ) \
108
108
f(final_update_refs_roots, " Update Roots" ) \
109
- SHENANDOAH_GC_PAR_PHASE_DO (final_update_, " UR: " , f) \
109
+ SHENANDOAH_PAR_PHASE_DO (final_update_, " UR: " , f) \
110
110
f(final_update_refs_update_region_states, " Update Region States" ) \
111
111
f(final_update_refs_trash_cset, " Trash Collection Set" ) \
112
112
f(final_update_refs_rebuild_freeset, " Rebuild Free Set" ) \
@@ -116,32 +116,32 @@ class outputStream;
116
116
f(degen_gc_gross, " Pause Degenerated GC (G)" ) \
117
117
f(degen_gc, " Pause Degenerated GC (N)" ) \
118
118
f(degen_gc_update_roots, " Degen Update Roots" ) \
119
- SHENANDOAH_GC_PAR_PHASE_DO (degen_gc_update_, " DU: " , f) \
119
+ SHENANDOAH_PAR_PHASE_DO (degen_gc_update_, " DU: " , f) \
120
120
\
121
121
f(full_gc_gross, " Pause Full GC (G)" ) \
122
122
f(full_gc, " Pause Full GC (N)" ) \
123
123
f(full_gc_heapdump_pre, " Pre Heap Dump" ) \
124
124
f(full_gc_prepare, " Prepare" ) \
125
125
f(full_gc_scan_roots, " Scan Roots" ) \
126
- SHENANDOAH_GC_PAR_PHASE_DO (full_gc_scan_roots_, " FS: " , f) \
126
+ SHENANDOAH_PAR_PHASE_DO (full_gc_scan_roots_, " FS: " , f) \
127
127
f(full_gc_update_roots, " Update Roots" ) \
128
- SHENANDOAH_GC_PAR_PHASE_DO (full_gc_update_roots_, " FU: " , f) \
128
+ SHENANDOAH_PAR_PHASE_DO (full_gc_update_roots_, " FU: " , f) \
129
129
f(full_gc_mark, " Mark" ) \
130
130
f(full_gc_mark_finish_queues, " Finish Queues" ) \
131
131
f(full_gc_weakrefs, " Weak References" ) \
132
132
f(full_gc_weakrefs_process, " Process" ) \
133
133
f(full_gc_purge, " System Purge" ) \
134
134
f(full_gc_purge_class_unload, " Unload Classes" ) \
135
- SHENANDOAH_GC_PAR_PHASE_DO (full_gc_purge_cu_par_, " CU: " , f) \
135
+ SHENANDOAH_PAR_PHASE_DO (full_gc_purge_cu_par_, " CU: " , f) \
136
136
f(full_gc_purge_weak_par, " Weak Roots" ) \
137
- SHENANDOAH_GC_PAR_PHASE_DO (full_gc_purge_weak_p_, " WR: " , f) \
137
+ SHENANDOAH_PAR_PHASE_DO (full_gc_purge_weak_p_, " WR: " , f) \
138
138
f(full_gc_purge_cldg, " CLDG" ) \
139
139
f(full_gc_calculate_addresses, " Calculate Addresses" ) \
140
140
f(full_gc_calculate_addresses_regular, " Regular Objects" ) \
141
141
f(full_gc_calculate_addresses_humong, " Humongous Objects" ) \
142
142
f(full_gc_adjust_pointers, " Adjust Pointers" ) \
143
143
f(full_gc_adjust_roots, " Adjust Roots" ) \
144
- SHENANDOAH_GC_PAR_PHASE_DO (full_gc_adjust_roots_, " FA: " , f) \
144
+ SHENANDOAH_PAR_PHASE_DO (full_gc_adjust_roots_, " FA: " , f) \
145
145
f(full_gc_copy_objects, " Copy Objects" ) \
146
146
f(full_gc_copy_objects_regular, " Regular Objects" ) \
147
147
f(full_gc_copy_objects_humong, " Humongous Objects" ) \
@@ -153,7 +153,7 @@ class outputStream;
153
153
f(conc_uncommit, " Concurrent Uncommit" ) \
154
154
\
155
155
f(heap_iteration_roots, " Heap Iteration" ) \
156
- SHENANDOAH_GC_PAR_PHASE_DO (heap_iteration_roots_, " HI: " , f) \
156
+ SHENANDOAH_PAR_PHASE_DO (heap_iteration_roots_, " HI: " , f) \
157
157
// end
158
158
159
159
typedef WorkerDataArray<double> ShenandoahWorkerData;
@@ -162,20 +162,20 @@ class ShenandoahPhaseTimings : public CHeapObj<mtGC> {
162
162
friend class ShenandoahGCPhase ;
163
163
friend class ShenandoahWorkerTimingsTracker ;
164
164
public:
165
- #define GC_PHASE_DECLARE_ENUM (type, title ) type,
165
+ #define SHENANDOAH_PHASE_DECLARE_ENUM (type, title ) type,
166
166
167
167
enum Phase {
168
- SHENANDOAH_GC_PHASE_DO (GC_PHASE_DECLARE_ENUM )
168
+ SHENANDOAH_PHASE_DO (SHENANDOAH_PHASE_DECLARE_ENUM )
169
169
_num_phases,
170
170
_invalid_phase = _num_phases
171
171
};
172
172
173
- enum GCParPhases {
174
- SHENANDOAH_GC_PAR_PHASE_DO (,, GC_PHASE_DECLARE_ENUM )
175
- GCParPhasesSentinel
173
+ enum ParPhase {
174
+ SHENANDOAH_PAR_PHASE_DO (,, SHENANDOAH_PHASE_DECLARE_ENUM )
175
+ _num_par_phases
176
176
};
177
177
178
- #undef GC_PHASE_DECLARE_ENUM
178
+ #undef SHENANDOAH_PHASE_DECLARE_ENUM
179
179
180
180
private:
181
181
uint _max_workers;
@@ -190,8 +190,8 @@ class ShenandoahPhaseTimings : public CHeapObj<mtGC> {
190
190
static bool is_worker_phase (Phase phase);
191
191
Phase current_worker_phase () { return _current_worker_phase; }
192
192
193
- ShenandoahWorkerData* worker_data (Phase phase, GCParPhases par_phase);
194
- Phase worker_par_phase (Phase phase, GCParPhases par_phase);
193
+ ShenandoahWorkerData* worker_data (Phase phase, ParPhase par_phase);
194
+ Phase worker_par_phase (Phase phase, ParPhase par_phase);
195
195
196
196
void set_cycle_data (Phase phase, double time);
197
197
@@ -217,15 +217,15 @@ class ShenandoahPhaseTimings : public CHeapObj<mtGC> {
217
217
218
218
class ShenandoahWorkerTimingsTracker : public StackObj {
219
219
private:
220
- ShenandoahPhaseTimings* const _timings;
221
- ShenandoahPhaseTimings::Phase const _phase;
222
- ShenandoahPhaseTimings::GCParPhases const _par_phase;
220
+ ShenandoahPhaseTimings* const _timings;
221
+ ShenandoahPhaseTimings::Phase const _phase;
222
+ ShenandoahPhaseTimings::ParPhase const _par_phase;
223
223
uint const _worker_id;
224
224
225
225
double _start_time;
226
226
EventGCPhaseParallel _event;
227
227
public:
228
- ShenandoahWorkerTimingsTracker (ShenandoahPhaseTimings::GCParPhases par_phase, uint worker_id);
228
+ ShenandoahWorkerTimingsTracker (ShenandoahPhaseTimings::ParPhase par_phase, uint worker_id);
229
229
~ShenandoahWorkerTimingsTracker ();
230
230
};
231
231
0 commit comments