src/hotspot/share/gc/z/zRelocationSetSelector.cpp
changeset 59149 3b998574be4b
parent 54362 313e034d0bcb
equal deleted inserted replaced
59148:877c000fd688 59149:3b998574be4b
    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;