< prev index next >
src/hotspot/share/gc/z/zRelocationSetSelector.hpp
Print this page
@@ -52,10 +52,24 @@
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,11 +109,9 @@
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;
+ ZRelocationSetSelectorStats stats() const;
};
#endif // SHARE_GC_Z_ZRELOCATIONSETSELECTOR_HPP
< prev index next >