< prev index next >
src/hotspot/share/gc/z/zRelocationSetSelector.hpp
Print this page
*** 52,61 ****
--- 52,75 ----
size_t empty() const;
size_t compacting_from() const;
size_t compacting_to() const;
};
+ class ZRelocationSetSelectorStats {
+ friend class ZRelocationSetSelector;
+
+ private:
+ ZRelocationSetSelectorGroupStats _small;
+ ZRelocationSetSelectorGroupStats _medium;
+ ZRelocationSetSelectorGroupStats _large;
+
+ public:
+ const ZRelocationSetSelectorGroupStats& small() const;
+ const ZRelocationSetSelectorGroupStats& medium() const;
+ const ZRelocationSetSelectorGroupStats& large() const;
+ };
+
class ZRelocationSetSelectorGroup {
private:
const char* const _name;
const size_t _page_size;
const size_t _object_size_limit;
*** 95,105 ****
void register_live_page(ZPage* page);
void register_garbage_page(ZPage* page);
void select(ZRelocationSet* relocation_set);
! const ZRelocationSetSelectorGroupStats& stats_small() const;
! const ZRelocationSetSelectorGroupStats& stats_medium() const;
! const ZRelocationSetSelectorGroupStats& stats_large() const;
};
#endif // SHARE_GC_Z_ZRELOCATIONSETSELECTOR_HPP
--- 109,117 ----
void register_live_page(ZPage* page);
void register_garbage_page(ZPage* page);
void select(ZRelocationSet* relocation_set);
! ZRelocationSetSelectorStats stats() const;
};
#endif // SHARE_GC_Z_ZRELOCATIONSETSELECTOR_HPP
< prev index next >