xo-alloc + xo-allocutil: refactor to shrink dep surface area
This commit is contained in:
parent
8d4649c6cf
commit
540b43d971
34 changed files with 479 additions and 323 deletions
|
|
@ -263,6 +263,7 @@ GcStateDescription::GcStateDescription(const GcGenerationDescription & nursery,
|
|||
|
||||
using xo::gp;
|
||||
using xo::up;
|
||||
using xo::IObject;
|
||||
using xo::Object;
|
||||
using xo::obj::List;
|
||||
using xo::obj::Integer;
|
||||
|
|
@ -342,7 +343,7 @@ AppState::AppState()
|
|||
Object::mm = gc_.get();
|
||||
|
||||
for (auto & x: gc_root_v_)
|
||||
gc_->add_gc_root(x.ptr_address());
|
||||
gc_->add_gc_root(reinterpret_cast<IObject **>(x.ptr_address()));
|
||||
|
||||
gc_->disable_gc();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include "xo/object/Integer.hpp"
|
||||
#include "xo/object/List.hpp"
|
||||
|
||||
using xo::IObject;
|
||||
using xo::obj::Integer;
|
||||
using xo::obj::List;
|
||||
using xo::gp;
|
||||
|
|
@ -22,7 +23,7 @@ AppState::AppState()
|
|||
Object::mm = gc_.get();
|
||||
|
||||
for (auto & x: gc_root_v_)
|
||||
gc_->add_gc_root(x.ptr_address());
|
||||
gc_->add_gc_root(reinterpret_cast<IObject **>(x.ptr_address()));
|
||||
|
||||
gc_->disable_gc();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue