xo-gc stack: + contains() method
This commit is contained in:
parent
f4ddc21c2b
commit
85b3b43d46
2 changed files with 7 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ namespace xo {
|
|||
static size_type reserved(const DX1Collector & d, Generation g, role r);
|
||||
static size_type committed(const DX1Collector & d, Generation g, role r);
|
||||
static bool is_type_installed(const DX1Collector & d, typeseq tseq);
|
||||
static bool contains(const DX1Collector & d, role r, const void * addr);
|
||||
|
||||
static bool install_type(DX1Collector & d, const AGCObject & iface);
|
||||
static void add_gc_root_poly(DX1Collector & d, obj<AGCObject> * p_root);
|
||||
|
|
|
|||
|
|
@ -47,6 +47,12 @@ namespace xo {
|
|||
return stat_helper(d, &DArena::committed, g, r);
|
||||
}
|
||||
|
||||
bool
|
||||
ICollector_DX1Collector::contains(const DX1Collector & d, role r, const void * addr)
|
||||
{
|
||||
return d.contains(r, addr);
|
||||
}
|
||||
|
||||
bool
|
||||
ICollector_DX1Collector::is_type_installed(const DX1Collector & d, typeseq tseq)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue