< prev index next >

src/share/vm/gc_interface/gcCause.hpp

Print this page




  56     _allocation_failure,
  57 
  58     /* implementation specific */
  59 
  60     _tenured_generation_full,
  61     _metadata_GC_threshold,
  62 
  63     _cms_generation_full,
  64     _cms_initial_mark,
  65     _cms_final_remark,
  66     _cms_concurrent_mark,
  67 
  68     _old_generation_expanded_on_last_scavenge,
  69     _old_generation_too_full_to_scavenge,
  70     _adaptive_size_policy,
  71 
  72     _g1_inc_collection_pause,
  73     _g1_humongous_allocation,
  74 
  75     _last_ditch_collection,



  76     _last_gc_cause
  77   };
  78 
  79   inline static bool is_user_requested_gc(GCCause::Cause cause) {
  80     return (cause == GCCause::_java_lang_system_gc ||
  81             cause == GCCause::_jvmti_force_gc);
  82   }
  83 
  84   inline static bool is_serviceability_requested_gc(GCCause::Cause
  85                                                              cause) {
  86     return (cause == GCCause::_jvmti_force_gc ||
  87             cause == GCCause::_heap_inspection ||
  88             cause == GCCause::_heap_dump);
  89   }
  90 
  91   // Return a string describing the GCCause.
  92   static const char* to_string(GCCause::Cause cause);
  93 };
  94 
  95 // Helper class for doing logging that includes the GC Cause
  96 // as a string.
  97 class GCCauseString : StackObj {
  98  private:
  99    static const int _length = 128;
 100    char _buffer[_length];
 101    int _position;




  56     _allocation_failure,
  57 
  58     /* implementation specific */
  59 
  60     _tenured_generation_full,
  61     _metadata_GC_threshold,
  62 
  63     _cms_generation_full,
  64     _cms_initial_mark,
  65     _cms_final_remark,
  66     _cms_concurrent_mark,
  67 
  68     _old_generation_expanded_on_last_scavenge,
  69     _old_generation_too_full_to_scavenge,
  70     _adaptive_size_policy,
  71 
  72     _g1_inc_collection_pause,
  73     _g1_humongous_allocation,
  74 
  75     _last_ditch_collection,
  76 
  77     _dcmd_gc_run,
  78 
  79     _last_gc_cause
  80   };
  81 
  82   inline static bool is_user_requested_gc(GCCause::Cause cause) {
  83     return (cause == GCCause::_java_lang_system_gc ||
  84             cause == GCCause::_dcmd_gc_run);
  85   }
  86 
  87   inline static bool is_serviceability_requested_gc(GCCause::Cause
  88                                                              cause) {
  89     return (cause == GCCause::_jvmti_force_gc ||
  90             cause == GCCause::_heap_inspection ||
  91             cause == GCCause::_heap_dump);
  92   }
  93 
  94   // Return a string describing the GCCause.
  95   static const char* to_string(GCCause::Cause cause);
  96 };
  97 
  98 // Helper class for doing logging that includes the GC Cause
  99 // as a string.
 100 class GCCauseString : StackObj {
 101  private:
 102    static const int _length = 128;
 103    char _buffer[_length];
 104    int _position;


< prev index next >