hotspot/src/share/vm/gc/g1/g1Allocator.cpp
changeset 46520 de5cb3eed39b
parent 46285 5b673a9fa682
child 46618 d503911aa948
equal deleted inserted replaced
46519:40c9c132f961 46520:de5cb3eed39b
   107   // _retained_old_gc_alloc_region. If we don't
   107   // _retained_old_gc_alloc_region. If we don't
   108   // _retained_old_gc_alloc_region will become NULL. This is what we
   108   // _retained_old_gc_alloc_region will become NULL. This is what we
   109   // want either way so no reason to check explicitly for either
   109   // want either way so no reason to check explicitly for either
   110   // condition.
   110   // condition.
   111   _retained_old_gc_alloc_region = old_gc_alloc_region(context)->release();
   111   _retained_old_gc_alloc_region = old_gc_alloc_region(context)->release();
   112   if (_retained_old_gc_alloc_region != NULL) {
       
   113     _retained_old_gc_alloc_region->record_retained_region();
       
   114   }
       
   115 }
   112 }
   116 
   113 
   117 void G1DefaultAllocator::abandon_gc_alloc_regions() {
   114 void G1DefaultAllocator::abandon_gc_alloc_regions() {
   118   assert(survivor_gc_alloc_region(AllocationContext::current())->get() == NULL, "pre-condition");
   115   assert(survivor_gc_alloc_region(AllocationContext::current())->get() == NULL, "pre-condition");
   119   assert(old_gc_alloc_region(AllocationContext::current())->get() == NULL, "pre-condition");
   116   assert(old_gc_alloc_region(AllocationContext::current())->get() == NULL, "pre-condition");