mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8031323: Optionally align objects copied to survivor spaces
Reviewed-by: brutisso, tschatzl
This commit is contained in:
parent
a959c0971e
commit
5f2c33e42b
16 changed files with 201 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue