equal
deleted
inserted
replaced
82 return _committed_regions.insert_before(committed_rgn, node) != NULL; |
82 return _committed_regions.insert_before(committed_rgn, node) != NULL; |
83 } else { |
83 } else { |
84 return _committed_regions.insert_after(committed_rgn, node) != NULL; |
84 return _committed_regions.insert_after(committed_rgn, node) != NULL; |
85 } |
85 } |
86 } |
86 } |
87 assert(rgn->contain_region(addr, size), "Must cover this region"); |
87 // If we have reached this point, then we are trying to commit a region that overlaps with some existing committed regions. |
|
88 remove_uncommitted_region(addr, size); |
|
89 add_committed_region(committed_rgn); |
|
90 |
88 return true; |
91 return true; |
89 } else { |
92 } else { |
90 // New committed region |
93 // New committed region |
91 VirtualMemorySummary::record_committed_memory(size, flag()); |
94 VirtualMemorySummary::record_committed_memory(size, flag()); |
92 return add_committed_region(committed_rgn); |
95 return add_committed_region(committed_rgn); |