Skip to content
Permalink
Browse files
8242625: Shenandoah: restore heap logging for Degenerated/Full cycles
Reviewed-by: rkennke, zgu
  • Loading branch information
shipilev committed Apr 14, 2020
1 parent b18e006 commit e0ccd77617ceba87271947228e4fe230affe445d
Showing 3 changed files with 5 additions and 5 deletions.
@@ -2720,7 +2720,7 @@ void ShenandoahHeap::entry_final_updaterefs() {

void ShenandoahHeap::entry_full(GCCause::Cause cause) {
static const char* msg = "Pause Full";
ShenandoahPausePhase gc_phase(msg);
ShenandoahPausePhase gc_phase(msg, true /* log_heap_usage */);
EventMark em("%s", msg);

ShenandoahGCPhase total_phase(ShenandoahPhaseTimings::total_pause);
@@ -2736,7 +2736,7 @@ void ShenandoahHeap::entry_full(GCCause::Cause cause) {
void ShenandoahHeap::entry_degenerated(int point) {
ShenandoahDegenPoint dpoint = (ShenandoahDegenPoint)point;
const char* msg = degen_event_message(dpoint);
ShenandoahPausePhase gc_phase(msg);
ShenandoahPausePhase gc_phase(msg, true /* log_heap_usage */);
EventMark em("%s", msg);

ShenandoahGCPhase total_phase(ShenandoahPhaseTimings::total_pause);
@@ -85,8 +85,8 @@ ShenandoahGCPauseMark::ShenandoahGCPauseMark(uint gc_id, SvcGCMarker::reason_typ
);
}

ShenandoahPausePhase::ShenandoahPausePhase(const char* title) :
_tracer(title),
ShenandoahPausePhase::ShenandoahPausePhase(const char* title, bool log_heap_usage) :
_tracer(title, NULL, GCCause::_no_gc, log_heap_usage),
_timer(ShenandoahHeap::heap()->gc_timer()) {
_timer->register_gc_pause_start(title);
}
@@ -60,7 +60,7 @@ class ShenandoahPausePhase : public StackObj {
ConcurrentGCTimer* const _timer;

public:
ShenandoahPausePhase(const char* title);
ShenandoahPausePhase(const char* title, bool log_heap_usage = false);
~ShenandoahPausePhase();
};

0 comments on commit e0ccd77

Please sign in to comment.