mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6740923: NUMA allocator: Ensure the progress of adaptive chunk resizing
Treat a chuck where the allocation has failed as fully used. Reviewed-by: ysr
This commit is contained in:
parent
fe4cab6eeb
commit
4204f82a1a
4 changed files with 51 additions and 6 deletions
|
@ -402,7 +402,7 @@ HeapWord* ParallelScavengeHeap::mem_allocate(
|
|||
return result;
|
||||
}
|
||||
if (!is_tlab &&
|
||||
size >= (young_gen()->eden_space()->capacity_in_words() / 2)) {
|
||||
size >= (young_gen()->eden_space()->capacity_in_words(Thread::current()) / 2)) {
|
||||
result = old_gen()->allocate(size, is_tlab);
|
||||
if (result != NULL) {
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue