src/share/vm/gc_implementation/parNew/parNewGeneration.hpp

changeset 1580
e018e6884bd8
parent 1130
becb17ad5e51
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/gc_implementation/parNew/parNewGeneration.hpp	Wed Dec 16 15:12:51 2009 -0800
     1.2 +++ b/src/share/vm/gc_implementation/parNew/parNewGeneration.hpp	Wed Dec 23 09:23:54 2009 -0800
     1.3 @@ -97,6 +97,9 @@
     1.4    int _pushes, _pops, _steals, _steal_attempts, _term_attempts;
     1.5    int _overflow_pushes, _overflow_refills, _overflow_refill_objs;
     1.6  
     1.7 +  // Stats for promotion failure
     1.8 +  size_t _promotion_failure_size;
     1.9 +
    1.10    // Timing numbers.
    1.11    double _start;
    1.12    double _start_strong_roots;
    1.13 @@ -169,6 +172,15 @@
    1.14    // Undo the most recent allocation ("obj", of "word_sz").
    1.15    void undo_alloc_in_to_space(HeapWord* obj, size_t word_sz);
    1.16  
    1.17 +  // Promotion failure stats
    1.18 +  size_t promotion_failure_size() { return promotion_failure_size(); }
    1.19 +  void log_promotion_failure(size_t sz) {
    1.20 +    if (_promotion_failure_size == 0) {
    1.21 +      _promotion_failure_size = sz;
    1.22 +    }
    1.23 +  }
    1.24 +  void print_and_clear_promotion_failure_size();
    1.25 +
    1.26    int pushes() { return _pushes; }
    1.27    int pops()   { return _pops; }
    1.28    int steals() { return _steals; }

mercurial