hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp
changeset 34136 7e08409e5935
parent 33803 d61d5830df80
child 34137 41cc1ac3e1d9
equal deleted inserted replaced
34134:d4fd14f628fb 34136:7e08409e5935
  2276   // Let's fill up most of the region
  2276   // Let's fill up most of the region
  2277   size_t word_size = HeapRegion::GrainWords - 1024;
  2277   size_t word_size = HeapRegion::GrainWords - 1024;
  2278   // And as a result the region we'll allocate will be humongous.
  2278   // And as a result the region we'll allocate will be humongous.
  2279   guarantee(is_humongous(word_size), "sanity");
  2279   guarantee(is_humongous(word_size), "sanity");
  2280 
  2280 
       
  2281   // _filler_array_max_size is set to humongous object threshold
       
  2282   // but temporarily change it to use CollectedHeap::fill_with_object().
       
  2283   SizeTFlagSetting fs(_filler_array_max_size, word_size);
       
  2284 
  2281   for (uintx i = 0; i < G1DummyRegionsPerGC; ++i) {
  2285   for (uintx i = 0; i < G1DummyRegionsPerGC; ++i) {
  2282     // Let's use the existing mechanism for the allocation
  2286     // Let's use the existing mechanism for the allocation
  2283     HeapWord* dummy_obj = humongous_obj_allocate(word_size,
  2287     HeapWord* dummy_obj = humongous_obj_allocate(word_size,
  2284                                                  AllocationContext::system());
  2288                                                  AllocationContext::system());
  2285     if (dummy_obj != NULL) {
  2289     if (dummy_obj != NULL) {