Skip to content
Permalink
Browse files

8242375: Shenandoah: Remove ShenandoahHeuristic::record_gc_start/end …

…methods

Reviewed-by: shade, rkennke
  • Loading branch information
zhengyu123 committed Apr 8, 2020
1 parent 1c65145 commit 29b0912bc353b691c4b8c8777688df56ad6c3332
@@ -174,14 +174,6 @@ void ShenandoahHeuristics::choose_collection_set(ShenandoahCollectionSet* collec
cset_percent);
}

void ShenandoahHeuristics::record_gc_start() {
// Do nothing
}

void ShenandoahHeuristics::record_gc_end() {
// Do nothing
}

void ShenandoahHeuristics::record_cycle_start() {
_cycle_start = os::elapsedTime();
}
@@ -96,10 +96,6 @@ class ShenandoahHeuristics : public CHeapObj<mtGC> {
ShenandoahHeuristics();
virtual ~ShenandoahHeuristics();

void record_gc_start();

void record_gc_end();

void record_metaspace_oom() { _metaspace_oom.set(); }
void clear_metaspace_oom() { _metaspace_oom.unset(); }
bool has_metaspace_oom() const { return _metaspace_oom.is_set(); }
@@ -83,12 +83,6 @@ ShenandoahGCPauseMark::ShenandoahGCPauseMark(uint gc_id, SvcGCMarker::reason_typ
/* recordGCEndTime = */ true,
/* countCollection = */ true
);

_heap->heuristics()->record_gc_start();
}

ShenandoahGCPauseMark::~ShenandoahGCPauseMark() {
_heap->heuristics()->record_gc_end();
}

ShenandoahPausePhase::ShenandoahPausePhase(const char* title) :
@@ -120,7 +120,6 @@ class ShenandoahGCPauseMark : public StackObj {

public:
ShenandoahGCPauseMark(uint gc_id, SvcGCMarker::reason_type type);
~ShenandoahGCPauseMark();
};

class ShenandoahSafepoint : public AllStatic {

0 comments on commit 29b0912

Please sign in to comment.