mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
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:
parent
dcf8c40e3a
commit
edcfaf0f84
6 changed files with 76 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue