Mercurial > hg > graal-compiler
comparison src/share/vm/gc_interface/gcCause.hpp @ 360:5d254928c888
Merge
author | ysr |
---|---|
date | Wed, 27 Aug 2008 11:20:46 -0700 |
parents | 37f87013dfd8 |
children | 96b229c54d1e |
comparison
equal
deleted
inserted
replaced
341:d60e4e6d7f72 | 360:5d254928c888 |
---|---|
58 | 58 |
59 _old_generation_expanded_on_last_scavenge, | 59 _old_generation_expanded_on_last_scavenge, |
60 _old_generation_too_full_to_scavenge, | 60 _old_generation_too_full_to_scavenge, |
61 _adaptive_size_policy, | 61 _adaptive_size_policy, |
62 | 62 |
63 _g1_inc_collection_pause, _g1_pop_region_collection_pause, | |
64 | |
63 _last_ditch_collection, | 65 _last_ditch_collection, |
64 _last_gc_cause | 66 _last_gc_cause |
65 }; | 67 }; |
66 | 68 |
67 inline static bool is_user_requested_gc(GCCause::Cause cause) { | 69 inline static bool is_user_requested_gc(GCCause::Cause cause) { |
68 return (cause == GCCause::_java_lang_system_gc || | 70 return (cause == GCCause::_java_lang_system_gc || |
69 cause == GCCause::_jvmti_force_gc); | 71 cause == GCCause::_jvmti_force_gc); |
70 } | 72 } |
73 | |
71 inline static bool is_serviceability_requested_gc(GCCause::Cause | 74 inline static bool is_serviceability_requested_gc(GCCause::Cause |
72 cause) { | 75 cause) { |
73 return (cause == GCCause::_jvmti_force_gc || | 76 return (cause == GCCause::_jvmti_force_gc || |
74 cause == GCCause::_heap_inspection || | 77 cause == GCCause::_heap_inspection || |
75 cause == GCCause::_heap_dump); | 78 cause == GCCause::_heap_dump); |
76 } | 79 } |
80 | |
77 // Return a string describing the GCCause. | 81 // Return a string describing the GCCause. |
78 static const char* to_string(GCCause::Cause cause); | 82 static const char* to_string(GCCause::Cause cause); |
79 // Return true if the GCCause is for a full collection. | 83 // Return true if the GCCause is for a full collection. |
80 static bool is_for_full_collection(GCCause::Cause cause) PRODUCT_RETURN0; | 84 static bool is_for_full_collection(GCCause::Cause cause) PRODUCT_RETURN0; |
81 }; | 85 }; |