comparison src/share/vm/gc_implementation/parNew/parNewGeneration.hpp @ 20317:ee019285a52c

8031323: Optionally align objects copied to survivor spaces Reviewed-by: brutisso, tschatzl
author jmasa
date Mon, 04 Aug 2014 10:48:10 -0700
parents 2c6ef90f030a
children
comparison
equal deleted inserted replaced
20316:3c048df3ef8b 20317:ee019285a52c
166 166
167 // Allocate a to-space block of size "sz", or else return NULL. 167 // Allocate a to-space block of size "sz", or else return NULL.
168 HeapWord* alloc_in_to_space_slow(size_t word_sz); 168 HeapWord* alloc_in_to_space_slow(size_t word_sz);
169 169
170 HeapWord* alloc_in_to_space(size_t word_sz) { 170 HeapWord* alloc_in_to_space(size_t word_sz) {
171 HeapWord* obj = to_space_alloc_buffer()->allocate(word_sz); 171 HeapWord* obj = to_space_alloc_buffer()->allocate_aligned(word_sz, SurvivorAlignmentInBytes);
172 if (obj != NULL) return obj; 172 if (obj != NULL) return obj;
173 else return alloc_in_to_space_slow(word_sz); 173 else return alloc_in_to_space_slow(word_sz);
174 } 174 }
175 175
176 HeapWord* young_old_boundary() { return _young_old_boundary; } 176 HeapWord* young_old_boundary() { return _young_old_boundary; }