@@ -63,13 +63,10 @@ class GCCause : public AllStatic {
63
63
64
64
/* implementation specific */
65
65
66
- _tenured_generation_full,
67
66
_codecache_GC_threshold,
68
67
_metadata_GC_threshold,
69
68
_metadata_GC_clear_soft_refs,
70
69
71
- _old_generation_expanded_on_last_scavenge,
72
- _old_generation_too_full_to_scavenge,
73
70
_adaptive_size_policy,
74
71
75
72
_g1_inc_collection_pause,
@@ -109,17 +106,11 @@ class GCCause : public AllStatic {
109
106
110
107
// Causes for collection of the tenured gernation
111
108
inline static bool is_tenured_allocation_failure_gc (GCCause::Cause cause) {
112
- assert (cause != GCCause::_old_generation_too_full_to_scavenge &&
113
- cause != GCCause::_old_generation_expanded_on_last_scavenge,
114
- " This GCCause may be correct but is not expected yet: %s" ,
115
- to_string (cause));
116
- // _tenured_generation_full for full tenured generations
117
109
// _adaptive_size_policy for a full collection after a young GC
118
110
// _allocation_failure is the generic cause a collection which could result
119
111
// in the collection of the tenured generation if there is not enough space
120
112
// in the tenured generation to support a young GC.
121
- return (cause == GCCause::_tenured_generation_full ||
122
- cause == GCCause::_adaptive_size_policy ||
113
+ return (cause == GCCause::_adaptive_size_policy ||
123
114
cause == GCCause::_allocation_failure);
124
115
}
125
116
0 commit comments