comparison src/share/vm/gc_implementation/parallelScavenge/psYoungGen.hpp @ 17648:a034dc5e910b

8028391: Make the Min/MaxHeapFreeRatio flags manageable Summary: Made the flags Min- and MaxHeapFreeRatio manageable, and implemented support for these flags in ParallelGC. Reviewed-by: sla, mgerdin, brutisso
author jwilhelm
date Wed, 29 Jan 2014 23:17:05 +0100
parents da91efe96a93
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
17647:3d60c34b14ca 17648:a034dc5e910b
125 125
126 void precompact(); 126 void precompact();
127 void adjust_pointers(); 127 void adjust_pointers();
128 void compact(); 128 void compact();
129 129
130 // Called during/after gc 130 // Called during/after GC
131 void swap_spaces(); 131 void swap_spaces();
132 132
133 // Resize generation using suggested free space size and survivor size 133 // Resize generation using suggested free space size and survivor size
134 // NOTE: "eden_size" and "survivor_size" are suggestions only. Current 134 // NOTE: "eden_size" and "survivor_size" are suggestions only. Current
135 // heap layout (particularly, live objects in from space) might 135 // heap layout (particularly, live objects in from space) might
144 size_t capacity_in_words() const; 144 size_t capacity_in_words() const;
145 size_t used_in_words() const; 145 size_t used_in_words() const;
146 size_t free_in_words() const; 146 size_t free_in_words() const;
147 147
148 // The max this generation can grow to 148 // The max this generation can grow to
149 size_t max_size() const { return _reserved.byte_size(); } 149 size_t max_size() const { return _reserved.byte_size(); }
150 150
151 // The max this generation can grow to if the boundary between 151 // The max this generation can grow to if the boundary between
152 // the generations are allowed to move. 152 // the generations are allowed to move.
153 size_t gen_size_limit() const { return _max_gen_size; } 153 size_t gen_size_limit() const { return _max_gen_size; }
154 154
155 bool is_maximal_no_gc() const { 155 bool is_maximal_no_gc() const {
156 return true; // never expands except at a GC 156 return true; // Never expands except at a GC
157 } 157 }
158 158
159 // Allocation 159 // Allocation
160 HeapWord* allocate(size_t word_size) { 160 HeapWord* allocate(size_t word_size) {
161 HeapWord* result = eden_space()->cas_allocate(word_size); 161 HeapWord* result = eden_space()->cas_allocate(word_size);