comparison src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp @ 373:06df86c2ec37

6740923: NUMA allocator: Ensure the progress of adaptive chunk resizing Summary: Treat a chuck where the allocation has failed as fully used. Reviewed-by: ysr
author iveresov
date Sat, 27 Sep 2008 00:33:13 -0700
parents 850fdf70db2b
children a4b729f5b611
comparison
equal deleted inserted replaced
365:5f44674206d3 373:06df86c2ec37
400 // TLAB allocation directly in the old gen. 400 // TLAB allocation directly in the old gen.
401 if (result != NULL) { 401 if (result != NULL) {
402 return result; 402 return result;
403 } 403 }
404 if (!is_tlab && 404 if (!is_tlab &&
405 size >= (young_gen()->eden_space()->capacity_in_words() / 2)) { 405 size >= (young_gen()->eden_space()->capacity_in_words(Thread::current()) / 2)) {
406 result = old_gen()->allocate(size, is_tlab); 406 result = old_gen()->allocate(size, is_tlab);
407 if (result != NULL) { 407 if (result != NULL) {
408 return result; 408 return result;
409 } 409 }
410 } 410 }