Mercurial > hg > truffle
comparison src/share/vm/memory/defNewGeneration.cpp @ 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 | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20316:3c048df3ef8b | 20317:ee019285a52c |
---|---|
787 size_t s = old->size(); | 787 size_t s = old->size(); |
788 oop obj = NULL; | 788 oop obj = NULL; |
789 | 789 |
790 // Try allocating obj in to-space (unless too old) | 790 // Try allocating obj in to-space (unless too old) |
791 if (old->age() < tenuring_threshold()) { | 791 if (old->age() < tenuring_threshold()) { |
792 obj = (oop) to()->allocate(s); | 792 obj = (oop) to()->allocate_aligned(s); |
793 } | 793 } |
794 | 794 |
795 // Otherwise try allocating obj tenured | 795 // Otherwise try allocating obj tenured |
796 if (obj == NULL) { | 796 if (obj == NULL) { |
797 obj = _next_gen->promote(old, s); | 797 obj = _next_gen->promote(old, s); |