mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8256181: Remove Allocation of old generation on alternate memory devices functionality
Reviewed-by: ayang, iignatyev, iklam
This commit is contained in:
parent
4df8abc200
commit
bd8693a084
50 changed files with 132 additions and 2311 deletions
|
@ -287,21 +287,6 @@ void FreeRegionList::remove_starting_at(HeapRegion* first, uint num_regions) {
|
|||
verify_optional();
|
||||
}
|
||||
|
||||
uint FreeRegionList::num_of_regions_in_range(uint start, uint end) const {
|
||||
HeapRegion* cur = _head;
|
||||
uint num = 0;
|
||||
while (cur != NULL) {
|
||||
uint index = cur->hrm_index();
|
||||
if (index > end) {
|
||||
break;
|
||||
} else if (index >= start) {
|
||||
num++;
|
||||
}
|
||||
cur = cur->next();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
void FreeRegionList::verify() {
|
||||
// See comment in HeapRegionSetBase::verify() about MT safety and
|
||||
// verification.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue