8241926: Shenandoah: only print heap changes for operations that directly affect it
Reviewed-by: rkennke
This commit is contained in:
parent
fc806b6706
commit
6af855fd97
@ -2799,7 +2799,7 @@ void ShenandoahHeap::entry_mark() {
|
||||
TraceCollectorStats tcs(monitoring_support()->concurrent_collection_counters());
|
||||
|
||||
const char* msg = conc_mark_event_message();
|
||||
GCTraceTime(Info, gc) time(msg, NULL, GCCause::_no_gc, true);
|
||||
GCTraceTime(Info, gc) time(msg);
|
||||
EventMark em("%s", msg);
|
||||
|
||||
ShenandoahWorkerScope scope(workers(),
|
||||
@ -2815,7 +2815,7 @@ void ShenandoahHeap::entry_evac() {
|
||||
TraceCollectorStats tcs(monitoring_support()->concurrent_collection_counters());
|
||||
|
||||
static const char* msg = "Concurrent evacuation";
|
||||
GCTraceTime(Info, gc) time(msg, NULL, GCCause::_no_gc, true);
|
||||
GCTraceTime(Info, gc) time(msg);
|
||||
EventMark em("%s", msg);
|
||||
|
||||
ShenandoahWorkerScope scope(workers(),
|
||||
@ -2830,7 +2830,7 @@ void ShenandoahHeap::entry_updaterefs() {
|
||||
ShenandoahGCPhase phase(ShenandoahPhaseTimings::conc_update_refs);
|
||||
|
||||
static const char* msg = "Concurrent update references";
|
||||
GCTraceTime(Info, gc) time(msg, NULL, GCCause::_no_gc, true);
|
||||
GCTraceTime(Info, gc) time(msg);
|
||||
EventMark em("%s", msg);
|
||||
|
||||
ShenandoahWorkerScope scope(workers(),
|
||||
@ -2845,7 +2845,7 @@ void ShenandoahHeap::entry_roots() {
|
||||
ShenandoahGCPhase phase(ShenandoahPhaseTimings::conc_roots);
|
||||
|
||||
static const char* msg = "Concurrent roots processing";
|
||||
GCTraceTime(Info, gc) time(msg, NULL, GCCause::_no_gc, true);
|
||||
GCTraceTime(Info, gc) time(msg);
|
||||
EventMark em("%s", msg);
|
||||
|
||||
ShenandoahWorkerScope scope(workers(),
|
||||
@ -2873,7 +2873,7 @@ void ShenandoahHeap::entry_reset() {
|
||||
ShenandoahGCPhase phase(ShenandoahPhaseTimings::conc_reset);
|
||||
|
||||
static const char* msg = "Concurrent reset";
|
||||
GCTraceTime(Info, gc) time(msg, NULL, GCCause::_no_gc, true);
|
||||
GCTraceTime(Info, gc) time(msg);
|
||||
EventMark em("%s", msg);
|
||||
|
||||
ShenandoahWorkerScope scope(workers(),
|
||||
@ -2887,7 +2887,7 @@ void ShenandoahHeap::entry_reset() {
|
||||
void ShenandoahHeap::entry_preclean() {
|
||||
if (ShenandoahPreclean && process_references()) {
|
||||
static const char* msg = "Concurrent precleaning";
|
||||
GCTraceTime(Info, gc) time(msg, NULL, GCCause::_no_gc, true);
|
||||
GCTraceTime(Info, gc) time(msg);
|
||||
EventMark em("%s", msg);
|
||||
|
||||
ShenandoahGCPhase conc_preclean(ShenandoahPhaseTimings::conc_preclean);
|
||||
@ -2904,7 +2904,7 @@ void ShenandoahHeap::entry_preclean() {
|
||||
|
||||
void ShenandoahHeap::entry_traversal() {
|
||||
static const char* msg = conc_traversal_event_message();
|
||||
GCTraceTime(Info, gc) time(msg, NULL, GCCause::_no_gc, true);
|
||||
GCTraceTime(Info, gc) time(msg);
|
||||
EventMark em("%s", msg);
|
||||
|
||||
TraceCollectorStats tcs(monitoring_support()->concurrent_collection_counters());
|
||||
|
Loading…
Reference in New Issue
Block a user