xo-alloc: mutation log tracking in working state + unit test
This commit is contained in:
parent
5f46b51f12
commit
c7488cbfd5
14 changed files with 659 additions and 94 deletions
|
|
@ -34,7 +34,7 @@ namespace xo {
|
|||
|
||||
bool full_move = gc->runstate().full_move();
|
||||
|
||||
if (!full_move && (gc->generation_of(src) == gc::generation::tenured)) {
|
||||
if (!full_move && (gc->tospace_generation_of(src) == gc::generation_result::tenured)) {
|
||||
/* don't move tenured objects during incremental collection */
|
||||
return src;
|
||||
}
|
||||
|
|
@ -61,7 +61,7 @@ namespace xo {
|
|||
|
||||
bool full_move = gc->runstate().full_move();
|
||||
|
||||
if (!full_move && gc->generation_of(from_src) == generation::tenured) {
|
||||
if (!full_move && gc->tospace_generation_of(from_src) == gc::generation_result::tenured) {
|
||||
/** incremental collection does not move already-tenured objects **/
|
||||
return from_src;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue