xo-gc: streamline naming

This commit is contained in:
Roland Conybeare 2026-04-03 17:31:02 -04:00
commit f71d40e4a0
2 changed files with 6 additions and 6 deletions

View file

@ -357,9 +357,9 @@ namespace xo {
void _init_space(const X1CollectorConfig & cfg);
/** swap from- and to- roles for all generations < @p upto **/
void swap_roles(Generation upto) noexcept;
void _swap_roles(Generation upto) noexcept;
/** copy roots + everything reachable from them, to to-space **/
void copy_roots(Generation upto) noexcept;
void _copy_roots(Generation upto) noexcept;
/** cleanup after gc **/
void _cleanup_phase(Generation upto);

View file

@ -539,13 +539,13 @@ namespace xo {
log && log("step 0d : [STUB] scan for object statistics");
log && log("step 1 : swap from/to roles (now to-space is empty)");
this->swap_roles(upto);
this->_swap_roles(upto);
log && log(xtag("from_0", get_space(role::from_space(), Generation{0})->lo_),
xtag("to_0", get_space(role::to_space(), Generation{0})->lo_));
log && log("step 2a : copy roots");
this->copy_roots(upto);
this->_copy_roots(upto);
log && log("step 2b : [STUB] copy pinned");
@ -578,7 +578,7 @@ namespace xo {
}
void
DX1Collector::swap_roles(Generation upto) noexcept
DX1Collector::_swap_roles(Generation upto) noexcept
{
scope log(XO_DEBUG(true), xtag("upto", upto));
@ -596,7 +596,7 @@ namespace xo {
}
void
DX1Collector::copy_roots(Generation upto) noexcept
DX1Collector::_copy_roots(Generation upto) noexcept
{
scope log(XO_DEBUG(true));