src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp

Print this page

        

*** 1739,1749 **** HeapWord* G1CollectedHeap::expand_and_allocate(size_t word_size) { assert_at_safepoint(true /* should_be_vm_thread */); verify_region_sets_optional(); ! size_t expand_bytes = MAX2(word_size * HeapWordSize, MinHeapDeltaBytes); ergo_verbose1(ErgoHeapSizing, "attempt heap expansion", ergo_format_reason("allocation request failed") ergo_format_byte("allocation request"), word_size * HeapWordSize); --- 1739,1749 ---- HeapWord* G1CollectedHeap::expand_and_allocate(size_t word_size) { assert_at_safepoint(true /* should_be_vm_thread */); verify_region_sets_optional(); ! size_t expand_bytes = MAX2(word_size * HeapWordSize, (size_t)MinHeapDeltaBytes); ergo_verbose1(ErgoHeapSizing, "attempt heap expansion", ergo_format_reason("allocation request failed") ergo_format_byte("allocation request"), word_size * HeapWordSize);