52
53 char* _name_space;
54
55 // This constructor is only meant for use with the PSGenerationCounters
56 // constructor. The need for such an constructor should be eliminated
57 // when VirtualSpace and PSVirtualSpace are unified.
58 GenerationCounters()
59 : _name_space(NULL), _current_size(NULL), _virtual_space(NULL) {}
60
61 // This constructor is used for subclasses that do not have a space
62 // associated with them (e.g, in G1).
63 GenerationCounters(const char* name, int ordinal, int spaces,
64 size_t min_capacity, size_t max_capacity,
65 size_t curr_capacity);
66
67 public:
68 GenerationCounters(const char* name, int ordinal, int spaces,
69 size_t min_capacity, size_t max_capacity, VirtualSpace* v);
70
71 ~GenerationCounters() {
72 if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space, mtGC);
73 }
74
75 virtual void update_all();
76
77 const char* name_space() const { return _name_space; }
78
79 };
80 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GENERATIONCOUNTERS_HPP
|
52
53 char* _name_space;
54
55 // This constructor is only meant for use with the PSGenerationCounters
56 // constructor. The need for such an constructor should be eliminated
57 // when VirtualSpace and PSVirtualSpace are unified.
58 GenerationCounters()
59 : _name_space(NULL), _current_size(NULL), _virtual_space(NULL) {}
60
61 // This constructor is used for subclasses that do not have a space
62 // associated with them (e.g, in G1).
63 GenerationCounters(const char* name, int ordinal, int spaces,
64 size_t min_capacity, size_t max_capacity,
65 size_t curr_capacity);
66
67 public:
68 GenerationCounters(const char* name, int ordinal, int spaces,
69 size_t min_capacity, size_t max_capacity, VirtualSpace* v);
70
71 ~GenerationCounters() {
72 if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space);
73 }
74
75 virtual void update_all();
76
77 const char* name_space() const { return _name_space; }
78
79 };
80 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GENERATIONCOUNTERS_HPP
|