mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8241141: Restructure humongous object allocation in G1
Reviewed-by: tschatzl, kbarrett
This commit is contained in:
parent
dd4e04d6f5
commit
52ea4802f1
8 changed files with 162 additions and 103 deletions
|
@ -73,8 +73,10 @@ inline void HeapRegionManager::insert_into_free_list(HeapRegion* hr) {
|
|||
_free_list.add_ordered(hr);
|
||||
}
|
||||
|
||||
inline void HeapRegionManager::allocate_free_regions_starting_at(uint first, uint num_regions) {
|
||||
_free_list.remove_starting_at(at(first), num_regions);
|
||||
inline HeapRegion* HeapRegionManager::allocate_free_regions_starting_at(uint first, uint num_regions) {
|
||||
HeapRegion* start = at(first);
|
||||
_free_list.remove_starting_at(start, num_regions);
|
||||
return start;
|
||||
}
|
||||
|
||||
#endif // SHARE_GC_G1_HEAPREGIONMANAGER_INLINE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue