comparison src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp @ 10374:87c64c0438fb

6976350: G1: deal with fragmentation while copying objects during GC Summary: Create G1ParGCAllocBufferContainer to contain two buffers instead of previously using one buffer, in order to hold the first priority buffer longer. Thus, when some large objects hits the value of free space left in the first priority buffer it has an alternative to fit in the second priority buffer while the first priority buffer is given more chances to try allocating smaller objects. Overall, it will improve heap space efficiency. Reviewed-by: johnc, jmasa, brutisso Contributed-by: tamao <tao.mao@oracle.com>
author tamao
date Mon, 03 Jun 2013 14:37:13 -0700
parents 2e6857353b2c
children de6a9e811145
comparison
equal deleted inserted replaced
10372:e72f7eecc96d 10374:87c64c0438fb
156 } 156 }
157 157
158 // Fills in the unallocated portion of the buffer with a garbage object. 158 // Fills in the unallocated portion of the buffer with a garbage object.
159 // If "end_of_gc" is TRUE, is after the last use in the GC. IF "retain" 159 // If "end_of_gc" is TRUE, is after the last use in the GC. IF "retain"
160 // is true, attempt to re-use the unused portion in the next GC. 160 // is true, attempt to re-use the unused portion in the next GC.
161 void retire(bool end_of_gc, bool retain); 161 virtual void retire(bool end_of_gc, bool retain);
162 162
163 void print() PRODUCT_RETURN; 163 void print() PRODUCT_RETURN;
164 }; 164 };
165 165
166 // PLAB stats book-keeping 166 // PLAB stats book-keeping