6994056: G1: when GC locker is active, extend the Eden instead of allocating into the old gen

Allow the eden to the expanded up to a point when the GC locker is active.

Reviewed-by: jwilhelm, johnc, ysr, jcoomes
This commit is contained in:
Antonios Printezis 2010-12-07 16:47:42 -05:00
parent dcf8c40e3a
commit edcfaf0f84
6 changed files with 76 additions and 17 deletions

View file

@ -119,8 +119,9 @@ G1CollectedHeap::attempt_allocation(size_t word_size) {
// Try to get a new region and allocate out of it
HeapWord* result = replace_cur_alloc_region_and_allocate(word_size,
false, /* at safepoint */
true /* do_dirtying */);
false, /* at_safepoint */
true, /* do_dirtying */
false /* can_expand */);
if (result != NULL) {
assert_heap_not_locked();
return result;