xo-gc: X1Collector.assign_member() + GCRoots + use ArenaVector
Using ArenaVector for mlog.
This commit is contained in:
parent
2c2332c0a9
commit
6dc2bf1e93
10 changed files with 558 additions and 115 deletions
|
|
@ -26,6 +26,18 @@ namespace xo {
|
|||
|
||||
std::uint32_t value_;
|
||||
};
|
||||
|
||||
inline bool operator==(object_age lhs, object_age rhs) {
|
||||
return lhs.value_ == rhs.value_;
|
||||
}
|
||||
|
||||
inline bool operator<(object_age lhs, object_age rhs) {
|
||||
return lhs.value_ < rhs.value_;
|
||||
}
|
||||
|
||||
inline bool operator>(object_age lhs, object_age rhs) {
|
||||
return lhs.value_ > rhs.value_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue