equal
deleted
inserted
replaced
95 _sorted_pages[finger] = page; |
95 _sorted_pages[finger] = page; |
96 } |
96 } |
97 } |
97 } |
98 |
98 |
99 void ZRelocationSetSelectorGroup::select() { |
99 void ZRelocationSetSelectorGroup::select() { |
|
100 if (_page_size == 0) { |
|
101 // Page type disabled |
|
102 return; |
|
103 } |
|
104 |
100 // Calculate the number of pages to relocate by successively including pages in |
105 // Calculate the number of pages to relocate by successively including pages in |
101 // a candidate relocation set and calculate the maximum space requirement for |
106 // a candidate relocation set and calculate the maximum space requirement for |
102 // their live objects. |
107 // their live objects. |
103 const size_t npages = _registered_pages.size(); |
108 const size_t npages = _registered_pages.size(); |
104 size_t selected_from = 0; |
109 size_t selected_from = 0; |