Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/psYoungGen.hpp @ 18058:54bc75c144b0
Merge
author | asaha |
---|---|
date | Thu, 29 May 2014 13:14:25 -0700 |
parents | a034dc5e910b |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
18055:1fa005fb28f5 | 18058:54bc75c144b0 |
---|---|
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); |