60
61 _tenured_generation_full,
62 _metadata_GC_threshold,
63
64 _cms_generation_full,
65 _cms_initial_mark,
66 _cms_final_remark,
67 _cms_concurrent_mark,
68
69 _old_generation_expanded_on_last_scavenge,
70 _old_generation_too_full_to_scavenge,
71 _adaptive_size_policy,
72
73 _g1_inc_collection_pause,
74 _g1_humongous_allocation,
75
76 _shenandoah_stop_vm,
77 _shenandoah_metadata_gc_clear_softrefs,
78 _shenandoah_allocation_failure_evac,
79 _shenandoah_concurrent_gc,
80 _shenandoah_upgrade_to_full_gc,
81
82 _last_ditch_collection,
83 _last_gc_cause
84 };
85
86 inline static bool is_user_requested_gc(GCCause::Cause cause) {
87 return (cause == GCCause::_java_lang_system_gc ||
88 cause == GCCause::_jvmti_force_gc);
89 }
90
91 inline static bool is_serviceability_requested_gc(GCCause::Cause
92 cause) {
93 return (cause == GCCause::_jvmti_force_gc ||
94 cause == GCCause::_heap_inspection ||
95 cause == GCCause::_heap_dump);
96 }
97
98 // Return a string describing the GCCause.
99 static const char* to_string(GCCause::Cause cause);
|
60
61 _tenured_generation_full,
62 _metadata_GC_threshold,
63
64 _cms_generation_full,
65 _cms_initial_mark,
66 _cms_final_remark,
67 _cms_concurrent_mark,
68
69 _old_generation_expanded_on_last_scavenge,
70 _old_generation_too_full_to_scavenge,
71 _adaptive_size_policy,
72
73 _g1_inc_collection_pause,
74 _g1_humongous_allocation,
75
76 _shenandoah_stop_vm,
77 _shenandoah_metadata_gc_clear_softrefs,
78 _shenandoah_allocation_failure_evac,
79 _shenandoah_concurrent_gc,
80 _shenandoah_traversal_gc,
81 _shenandoah_upgrade_to_full_gc,
82
83 _last_ditch_collection,
84 _last_gc_cause
85 };
86
87 inline static bool is_user_requested_gc(GCCause::Cause cause) {
88 return (cause == GCCause::_java_lang_system_gc ||
89 cause == GCCause::_jvmti_force_gc);
90 }
91
92 inline static bool is_serviceability_requested_gc(GCCause::Cause
93 cause) {
94 return (cause == GCCause::_jvmti_force_gc ||
95 cause == GCCause::_heap_inspection ||
96 cause == GCCause::_heap_dump);
97 }
98
99 // Return a string describing the GCCause.
100 static const char* to_string(GCCause::Cause cause);
|