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:
Igor Veresov 2008-09-27 00:33:13 -07:00
parent fe4cab6eeb
commit 4204f82a1a
4 changed files with 51 additions and 6 deletions

View file

@ -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;