mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
Added new product ObjectAlignmentInBytes flag to control object alignment. Reviewed-by: twisti, ysr, iveresov
This commit is contained in:
parent
05b4f2e796
commit
cc18a50e59
29 changed files with 222 additions and 136 deletions
|
@ -3644,7 +3644,7 @@ void G1CollectedHeap::par_allocate_remaining_space(HeapRegion* r) {
|
|||
do {
|
||||
free_words = r->free()/HeapWordSize;
|
||||
// If there's too little space, no one can allocate, so we're done.
|
||||
if (free_words < (size_t)oopDesc::header_size()) return;
|
||||
if (free_words < CollectedHeap::min_fill_size()) return;
|
||||
// Otherwise, try to claim it.
|
||||
block = r->par_allocate(free_words);
|
||||
} while (block == NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue