63 |
63 |
64 _tenured_generation_full, |
64 _tenured_generation_full, |
65 _metadata_GC_threshold, |
65 _metadata_GC_threshold, |
66 _metadata_GC_clear_soft_refs, |
66 _metadata_GC_clear_soft_refs, |
67 |
67 |
68 _cms_generation_full, |
|
69 _cms_initial_mark, |
|
70 _cms_final_remark, |
|
71 _cms_concurrent_mark, |
|
72 |
|
73 _old_generation_expanded_on_last_scavenge, |
68 _old_generation_expanded_on_last_scavenge, |
74 _old_generation_too_full_to_scavenge, |
69 _old_generation_too_full_to_scavenge, |
75 _adaptive_size_policy, |
70 _adaptive_size_policy, |
76 |
71 |
77 _g1_inc_collection_pause, |
72 _g1_inc_collection_pause, |
112 inline static bool is_tenured_allocation_failure_gc(GCCause::Cause cause) { |
107 inline static bool is_tenured_allocation_failure_gc(GCCause::Cause cause) { |
113 assert(cause != GCCause::_old_generation_too_full_to_scavenge && |
108 assert(cause != GCCause::_old_generation_too_full_to_scavenge && |
114 cause != GCCause::_old_generation_expanded_on_last_scavenge, |
109 cause != GCCause::_old_generation_expanded_on_last_scavenge, |
115 "This GCCause may be correct but is not expected yet: %s", |
110 "This GCCause may be correct but is not expected yet: %s", |
116 to_string(cause)); |
111 to_string(cause)); |
117 // _tenured_generation_full or _cms_generation_full for full tenured generations |
112 // _tenured_generation_full for full tenured generations |
118 // _adaptive_size_policy for a full collection after a young GC |
113 // _adaptive_size_policy for a full collection after a young GC |
119 // _allocation_failure is the generic cause a collection which could result |
114 // _allocation_failure is the generic cause a collection which could result |
120 // in the collection of the tenured generation if there is not enough space |
115 // in the collection of the tenured generation if there is not enough space |
121 // in the tenured generation to support a young GC. |
116 // in the tenured generation to support a young GC. |
122 return (cause == GCCause::_tenured_generation_full || |
117 return (cause == GCCause::_tenured_generation_full || |
123 cause == GCCause::_cms_generation_full || |
|
124 cause == GCCause::_adaptive_size_policy || |
118 cause == GCCause::_adaptive_size_policy || |
125 cause == GCCause::_allocation_failure); |
119 cause == GCCause::_allocation_failure); |
126 } |
120 } |
127 |
121 |
128 // Causes for collection of the young generation |
122 // Causes for collection of the young generation |