@@ -233,6 +233,8 @@ void ShenandoahGenerationalControlThread::run_gc_cycle(const ShenandoahGCRequest
233
233
// GC is starting, bump the internal ID
234
234
update_gc_id ();
235
235
236
+ GCIdMark gc_id_mark;
237
+
236
238
_heap->reset_bytes_allocated_since_gc_start ();
237
239
238
240
MetaspaceCombinedStats meta_sizes = MetaspaceUtils::get_combined_statistics ();
@@ -263,7 +265,6 @@ void ShenandoahGenerationalControlThread::run_gc_cycle(const ShenandoahGCRequest
263
265
}
264
266
case servicing_old: {
265
267
assert (request.generation ->is_old (), " Expected old generation here" );
266
- GCIdMark gc_id_mark;
267
268
service_concurrent_old_cycle (request);
268
269
break ;
269
270
}
@@ -386,7 +387,6 @@ void ShenandoahGenerationalControlThread::process_phase_timings() const {
386
387
// +---> Global Degen +--------------------> Full <----+
387
388
//
388
389
void ShenandoahGenerationalControlThread::service_concurrent_normal_cycle (const ShenandoahGCRequest& request) {
389
- GCIdMark gc_id_mark;
390
390
log_info (gc, ergo)(" Start GC cycle (%s)" , request.generation ->name ());
391
391
if (request.generation ->is_old ()) {
392
392
service_concurrent_old_cycle (request);
@@ -621,7 +621,6 @@ bool ShenandoahGenerationalControlThread::check_cancellation_or_degen(Shenandoah
621
621
}
622
622
623
623
void ShenandoahGenerationalControlThread::service_stw_full_cycle (GCCause::Cause cause) {
624
- GCIdMark gc_id_mark;
625
624
ShenandoahGCSession session (cause, _heap->global_generation ());
626
625
maybe_set_aging_cycle ();
627
626
ShenandoahFullGC gc;
@@ -632,7 +631,6 @@ void ShenandoahGenerationalControlThread::service_stw_full_cycle(GCCause::Cause
632
631
void ShenandoahGenerationalControlThread::service_stw_degenerated_cycle (const ShenandoahGCRequest& request) {
633
632
assert (_degen_point != ShenandoahGC::_degenerated_unset, " Degenerated point should be set" );
634
633
635
- GCIdMark gc_id_mark;
636
634
ShenandoahGCSession session (request.cause , request.generation );
637
635
638
636
ShenandoahDegenGC gc (_degen_point, request.generation );
0 commit comments