equal
deleted
inserted
replaced
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"); |