1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp Wed Jan 04 07:56:13 2012 -0800 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp Thu Jan 05 05:54:01 2012 -0500 1.3 @@ -285,6 +285,14 @@ 1.4 // Typically, it is not full so we should re-use it during the next GC. 1.5 HeapRegion* _retained_old_gc_alloc_region; 1.6 1.7 + // It specifies whether we should attempt to expand the heap after a 1.8 + // region allocation failure. If heap expansion fails we set this to 1.9 + // false so that we don't re-attempt the heap expansion (it's likely 1.10 + // that subsequent expansion attempts will also fail if one fails). 1.11 + // Currently, it is only consulted during GC and it's reset at the 1.12 + // start of each GC. 1.13 + bool _expand_heap_after_alloc_failure; 1.14 + 1.15 // It resets the mutator alloc region before new allocations can take place. 1.16 void init_mutator_alloc_region(); 1.17