Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp @ 2152:0fa27f37d4d4
6977804: G1: remove the zero-filling thread
Summary: This changeset removes the zero-filling thread from G1 and collapses the two free region lists we had before (the "free" and "unclean" lists) into one. The new free list uses the new heap region sets / lists abstractions that we'll ultimately use it to keep track of all regions in the heap. A heap region set was also introduced for the humongous regions. Finally, this change increases the concurrency between the thread that completes freeing regions (after a cleanup pause) and the rest of the system (before we'd have to wait for said thread to complete before allocating a new region). The changest also includes a lot of refactoring and code simplification.
Reviewed-by: jcoomes, johnc
author | tonyp |
---|---|
date | Wed, 19 Jan 2011 19:30:42 -0500 |
parents | 7e37af9d69ef |
children | abdfc822206f |
comparison
equal
deleted
inserted
replaced
2151:cb913d743d09 | 2152:0fa27f37d4d4 |
---|---|
133 return NULL; | 133 return NULL; |
134 } | 134 } |
135 | 135 |
136 inline void | 136 inline void |
137 G1CollectedHeap::retire_cur_alloc_region_common(HeapRegion* cur_alloc_region) { | 137 G1CollectedHeap::retire_cur_alloc_region_common(HeapRegion* cur_alloc_region) { |
138 assert_heap_locked_or_at_safepoint(); | 138 assert_heap_locked_or_at_safepoint(true /* should_be_vm_thread */); |
139 assert(cur_alloc_region != NULL && cur_alloc_region == _cur_alloc_region, | 139 assert(cur_alloc_region != NULL && cur_alloc_region == _cur_alloc_region, |
140 "pre-condition of the call"); | 140 "pre-condition of the call"); |
141 assert(cur_alloc_region->is_young(), | 141 assert(cur_alloc_region->is_young(), |
142 "we only support young current alloc regions"); | 142 "we only support young current alloc regions"); |
143 | 143 |