8031323: Optionally align objects copied to survivor spaces

Reviewed-by: brutisso, tschatzl
This commit is contained in:
Jon Masamitsu 2014-08-01 15:40:12 -07:00
parent a959c0971e
commit 5f2c33e42b
16 changed files with 201 additions and 25 deletions

View file

@ -790,7 +790,7 @@ oop DefNewGeneration::copy_to_survivor_space(oop old) {
// Try allocating obj in to-space (unless too old)
if (old->age() < tenuring_threshold()) {
obj = (oop) to()->allocate(s);
obj = (oop) to()->allocate_aligned(s);
}
// Otherwise try allocating obj tenured