xo-umbrella2/src/gc/init_gc.cpp
Roland Conybeare c5da97dea0 xo-gc stack: + request-gc-statistics() primitive
1. xo-gc now depends on xo-object2.
2. use genfacet for ICollector_DX1Collector
3. moves xo-gc utest previously in xo-object2 to more natural
   location in xo-gc/
2026-03-29 13:44:19 -04:00

36 lines
755 B
C++

/** @file init_gc.cpp
*
* @author Roland Conybeare, Mar 2026
**/
#include "init_gc.hpp"
#include "SetupGc.hpp"
#include <xo/object2/init_object2.hpp>
#include <xo/alloc2/init_alloc2.hpp>
namespace xo {
using xo::mm::SetupGc;
void
InitSubsys<S_gc_tag>::init()
{
SetupGc::register_facets();
}
InitEvidence
InitSubsys<S_gc_tag>::require() {
InitEvidence retval;
/* recursive subsystem deps for xo-gc/ */
retval ^= InitSubsys<S_object2_tag>::require();
retval ^= InitSubsys<S_alloc2_tag>::require();
/* xo-gc/'s own initialization code */
retval ^= Subsystem::provide<S_gc_tag>("gc", &init);
return retval;
}
} /*namespace xo*/
/* end init_gc.cpp */