Print this page


Split Split Close
Expand all
Collapse all
          --- old/src/share/vm/memory/heapInspection.hpp
          +++ new/src/share/vm/memory/heapInspection.hpp
↓ open down ↓ 90 lines elided ↑ open up ↑
  91   91    uint hash(klassOop p);
  92   92    KlassInfoEntry* lookup(const klassOop k);
  93   93  
  94   94   public:
  95   95    // Table size
  96   96    enum {
  97   97      cit_size = 20011
  98   98    };
  99   99    KlassInfoTable(int size, HeapWord* ref);
 100  100    ~KlassInfoTable();
 101      -  void record_instance(const oop obj);
      101 +  bool record_instance(const oop obj);
 102  102    void iterate(KlassInfoClosure* cic);
      103 +  bool allocation_failed() { return _buckets == NULL; }
 103  104  };
 104  105  
 105  106  class KlassInfoHisto : public StackObj {
 106  107   private:
 107  108    GrowableArray<KlassInfoEntry*>* _elements;
 108  109    GrowableArray<KlassInfoEntry*>* elements() const { return _elements; }
 109  110    const char* _title;
 110  111    const char* title() const { return _title; }
 111  112    static int sort_helper(KlassInfoEntry** e1, KlassInfoEntry** e2);
 112  113    void print_elements(outputStream* st) const;
↓ open down ↓ 19 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX