comparison src/share/vm/memory/heapInspection.hpp @ 11113:2cbc8f3011a0

8015972: Refactor the sending of the object count after GC event Reviewed-by: brutisso, pliden
author ehelin
date Wed, 05 Jun 2013 09:44:03 +0200
parents f2110083203d
children 190899198332
comparison
equal deleted inserted replaced
11088:ea4d24c1e0c6 11113:2cbc8f3011a0
24 24
25 #ifndef SHARE_VM_MEMORY_HEAPINSPECTION_HPP 25 #ifndef SHARE_VM_MEMORY_HEAPINSPECTION_HPP
26 #define SHARE_VM_MEMORY_HEAPINSPECTION_HPP 26 #define SHARE_VM_MEMORY_HEAPINSPECTION_HPP
27 27
28 #include "memory/allocation.inline.hpp" 28 #include "memory/allocation.inline.hpp"
29 #include "memory/klassInfoClosure.hpp"
30 #include "oops/oop.inline.hpp" 29 #include "oops/oop.inline.hpp"
31 #include "oops/annotations.hpp" 30 #include "oops/annotations.hpp"
32 #include "utilities/macros.hpp" 31 #include "utilities/macros.hpp"
33 32
34 #if INCLUDE_SERVICES 33 #if INCLUDE_SERVICES
202 int compare(KlassInfoEntry* e1, KlassInfoEntry* e2); 201 int compare(KlassInfoEntry* e1, KlassInfoEntry* e2);
203 void print_on(outputStream* st) const; 202 void print_on(outputStream* st) const;
204 const char* name() const; 203 const char* name() const;
205 }; 204 };
206 205
206 class KlassInfoClosure : public StackObj {
207 public:
208 // Called for each KlassInfoEntry.
209 virtual void do_cinfo(KlassInfoEntry* cie) = 0;
210 };
211
207 class KlassInfoBucket: public CHeapObj<mtInternal> { 212 class KlassInfoBucket: public CHeapObj<mtInternal> {
208 private: 213 private:
209 KlassInfoEntry* _list; 214 KlassInfoEntry* _list;
210 KlassInfoEntry* list() { return _list; } 215 KlassInfoEntry* list() { return _list; }
211 void set_list(KlassInfoEntry* l) { _list = l; } 216 void set_list(KlassInfoEntry* l) { _list = l; }