8337546: Remove unused GCCause::_adaptive_size_policy
Reviewed-by: tschatzl, kbarrett
This commit is contained in:
parent
65646b5f81
commit
cf1230a5f7
@ -78,9 +78,6 @@ const char* GCCause::to_string(GCCause::Cause cause) {
|
||||
case _metadata_GC_clear_soft_refs:
|
||||
return "Metadata GC Clear Soft References";
|
||||
|
||||
case _adaptive_size_policy:
|
||||
return "Ergonomics";
|
||||
|
||||
case _g1_inc_collection_pause:
|
||||
return "G1 Evacuation Pause";
|
||||
|
||||
|
@ -66,8 +66,6 @@ class GCCause : public AllStatic {
|
||||
_metadata_GC_threshold,
|
||||
_metadata_GC_clear_soft_refs,
|
||||
|
||||
_adaptive_size_policy,
|
||||
|
||||
_g1_inc_collection_pause,
|
||||
_g1_compaction_pause,
|
||||
_g1_humongous_allocation,
|
||||
@ -110,20 +108,16 @@ class GCCause : public AllStatic {
|
||||
|
||||
// Causes for collection of the tenured gernation
|
||||
inline static bool is_tenured_allocation_failure_gc(GCCause::Cause cause) {
|
||||
// _adaptive_size_policy for a full collection after a young GC
|
||||
// _allocation_failure is the generic cause a collection which could result
|
||||
// in the collection of the tenured generation if there is not enough space
|
||||
// in the tenured generation to support a young GC.
|
||||
return (cause == GCCause::_adaptive_size_policy ||
|
||||
cause == GCCause::_allocation_failure);
|
||||
return cause == GCCause::_allocation_failure;
|
||||
}
|
||||
|
||||
// Causes for collection of the young generation
|
||||
inline static bool is_allocation_failure_gc(GCCause::Cause cause) {
|
||||
// _allocation_failure is the generic cause a collection for allocation failure
|
||||
// _adaptive_size_policy is for a collection done before a full GC
|
||||
return (cause == GCCause::_allocation_failure ||
|
||||
cause == GCCause::_adaptive_size_policy ||
|
||||
cause == GCCause::_shenandoah_allocation_failure_evac);
|
||||
}
|
||||
|
||||
|
@ -48,8 +48,6 @@ public enum GCCause {
|
||||
_metadata_GC_threshold ("Metadata GC Threshold"),
|
||||
_metadata_GC_clear_soft_refs ("Metadata GC Clear Soft References"),
|
||||
|
||||
_adaptive_size_policy ("Ergonomics"),
|
||||
|
||||
_g1_inc_collection_pause ("G1 Evacuation Pause"),
|
||||
_g1_compaction_pause ("G1 Compaction Pause"),
|
||||
_g1_humongous_allocation ("G1 Humongous Allocation"),
|
||||
|
@ -39,7 +39,7 @@ public class TestGCCauseWithParallelOld {
|
||||
String testID = "ParallelOld";
|
||||
String[] vmFlags = {"-XX:+UseParallelGC"};
|
||||
String[] gcNames = {GCHelper.gcParallelScavenge, GCHelper.gcParallelOld};
|
||||
String[] gcCauses = {"Allocation Failure", "Ergonomics", "System.gc()", "GCLocker Initiated GC"};
|
||||
String[] gcCauses = {"Allocation Failure", "System.gc()", "GCLocker Initiated GC"};
|
||||
GCGarbageCollectionUtil.test(testID, vmFlags, gcNames, gcCauses);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user