xo-gc: move deep_move_interior() aux to GCObjectStore
This commit is contained in:
parent
d44f1e9024
commit
d24f75b9ef
5 changed files with 30 additions and 6 deletions
|
|
@ -625,6 +625,24 @@ namespace xo {
|
|||
return true;
|
||||
}
|
||||
|
||||
void *
|
||||
GCObjectStore::deep_move_interior(DX1Collector * gc,
|
||||
void * from_src,
|
||||
Generation upto)
|
||||
{
|
||||
scope log(XO_DEBUG(config_.debug_flag_));
|
||||
|
||||
if (!from_src)
|
||||
return nullptr;
|
||||
|
||||
bool src_in_from_space = this->contains(role::from_space(), from_src);
|
||||
|
||||
if (!src_in_from_space)
|
||||
return from_src;
|
||||
|
||||
return this->_deep_move_gc_owned(gc, from_src, upto);
|
||||
}
|
||||
|
||||
void *
|
||||
GCObjectStore::_deep_move_gc_owned(DX1Collector * gc,
|
||||
void * from_src,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue