8245726: Shenandoah: lift/cleanup ShenandoahHeuristics names and properties

Reviewed-by: rkennke
This commit is contained in:
Aleksey Shipilev 2020-05-26 09:30:09 +02:00
parent 30b750dcd0
commit 66f6c8c3fe
10 changed files with 15 additions and 85 deletions

@ -161,15 +161,3 @@ bool ShenandoahAdaptiveHeuristics::should_start_gc() const {
return ShenandoahHeuristics::should_start_gc();
}
const char* ShenandoahAdaptiveHeuristics::name() {
return "adaptive";
}
bool ShenandoahAdaptiveHeuristics::is_diagnostic() {
return false;
}
bool ShenandoahAdaptiveHeuristics::is_experimental() {
return false;
}

@ -43,11 +43,9 @@ public:
virtual bool should_start_gc() const;
virtual const char* name();
virtual bool is_diagnostic();
virtual bool is_experimental();
virtual const char* name() { return "Adaptive"; }
virtual bool is_diagnostic() { return false; }
virtual bool is_experimental() { return false; }
};
#endif // SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHADAPTIVEHEURISTICS_HPP

@ -73,15 +73,3 @@ bool ShenandoahAggressiveHeuristics::should_unload_classes() {
// Randomly unload classes with 50% chance.
return (os::random() & 1) == 1;
}
const char* ShenandoahAggressiveHeuristics::name() {
return "aggressive";
}
bool ShenandoahAggressiveHeuristics::is_diagnostic() {
return true;
}
bool ShenandoahAggressiveHeuristics::is_experimental() {
return false;
}

@ -41,11 +41,9 @@ public:
virtual bool should_unload_classes();
virtual const char* name();
virtual bool is_diagnostic();
virtual bool is_experimental();
virtual const char* name() { return "Aggressive"; }
virtual bool is_diagnostic() { return true; }
virtual bool is_experimental() { return false; }
};
#endif // SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHAGGRESSIVEHEURISTICS_HPP

@ -93,15 +93,3 @@ void ShenandoahCompactHeuristics::choose_collection_set_from_regiondata(Shenando
}
}
}
const char* ShenandoahCompactHeuristics::name() {
return "compact";
}
bool ShenandoahCompactHeuristics::is_diagnostic() {
return false;
}
bool ShenandoahCompactHeuristics::is_experimental() {
return false;
}

@ -37,11 +37,9 @@ public:
RegionData* data, size_t size,
size_t actual_free);
virtual const char* name();
virtual bool is_diagnostic();
virtual bool is_experimental();
virtual const char* name() { return "Compact"; }
virtual bool is_diagnostic() { return false; }
virtual bool is_experimental() { return false; }
};
#endif // SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHCOMPACTHEURISTICS_HPP

@ -78,15 +78,3 @@ void ShenandoahPassiveHeuristics::choose_collection_set_from_regiondata(Shenando
}
}
}
const char* ShenandoahPassiveHeuristics::name() {
return "passive";
}
bool ShenandoahPassiveHeuristics::is_diagnostic() {
return true;
}
bool ShenandoahPassiveHeuristics::is_experimental() {
return false;
}

@ -41,11 +41,9 @@ public:
RegionData* data, size_t data_size,
size_t free);
virtual const char* name();
virtual bool is_diagnostic();
virtual bool is_experimental();
virtual const char* name() { return "Passive"; }
virtual bool is_diagnostic() { return true; }
virtual bool is_experimental() { return false; }
};
#endif // SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHPASSIVEHEURISTICS_HPP

@ -67,15 +67,3 @@ void ShenandoahStaticHeuristics::choose_collection_set_from_regiondata(Shenandoa
}
}
}
const char* ShenandoahStaticHeuristics::name() {
return "static";
}
bool ShenandoahStaticHeuristics::is_diagnostic() {
return false;
}
bool ShenandoahStaticHeuristics::is_experimental() {
return false;
}

@ -39,11 +39,9 @@ public:
RegionData* data, size_t size,
size_t free);
virtual const char* name();
virtual bool is_diagnostic();
virtual bool is_experimental();
virtual const char* name() { return "Static"; }
virtual bool is_diagnostic() { return false; }
virtual bool is_experimental() { return false; }
};
#endif // SHARE_GC_SHENANDOAH_HEURISTICS_SHENANDOAHSTATICHEURISTICS_HPP