From f71d40e4a0e18249008eda5e6d901238ac13c91b Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 3 Apr 2026 17:31:02 -0400 Subject: [PATCH] xo-gc: streamline naming --- include/xo/gc/DX1Collector.hpp | 4 ++-- src/gc/DX1Collector.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/xo/gc/DX1Collector.hpp b/include/xo/gc/DX1Collector.hpp index 76e90d2..5fe8235 100644 --- a/include/xo/gc/DX1Collector.hpp +++ b/include/xo/gc/DX1Collector.hpp @@ -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); diff --git a/src/gc/DX1Collector.cpp b/src/gc/DX1Collector.cpp index 95641dd..de2ea71 100644 --- a/src/gc/DX1Collector.cpp +++ b/src/gc/DX1Collector.cpp @@ -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));