Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp @ 1991:016a3628c885
6994056: G1: when GC locker is active, extend the Eden instead of allocating into the old gen
Summary: Allow the eden to the expanded up to a point when the GC locker is active.
Reviewed-by: jwilhelm, johnc, ysr, jcoomes
author | tonyp |
---|---|
date | Tue, 07 Dec 2010 16:47:42 -0500 |
parents | 631f79e71e90 |
children | b158bed62ef5 |
comparison
equal
deleted
inserted
replaced
1975:d9310331a29c | 1991:016a3628c885 |
---|---|
117 retire_cur_alloc_region(cur_alloc_region); | 117 retire_cur_alloc_region(cur_alloc_region); |
118 } | 118 } |
119 | 119 |
120 // Try to get a new region and allocate out of it | 120 // Try to get a new region and allocate out of it |
121 HeapWord* result = replace_cur_alloc_region_and_allocate(word_size, | 121 HeapWord* result = replace_cur_alloc_region_and_allocate(word_size, |
122 false, /* at safepoint */ | 122 false, /* at_safepoint */ |
123 true /* do_dirtying */); | 123 true, /* do_dirtying */ |
124 false /* can_expand */); | |
124 if (result != NULL) { | 125 if (result != NULL) { |
125 assert_heap_not_locked(); | 126 assert_heap_not_locked(); |
126 return result; | 127 return result; |
127 } | 128 } |
128 | 129 |