xo-alloc: nix-build + compiler nits
This commit is contained in:
parent
d720d89fd2
commit
caa03566da
2 changed files with 6 additions and 2 deletions
|
|
@ -390,8 +390,10 @@ namespace xo {
|
||||||
|
|
||||||
/* word size for alignment */
|
/* word size for alignment */
|
||||||
constexpr uint32_t c_bpw = sizeof(std::uintptr_t);
|
constexpr uint32_t c_bpw = sizeof(std::uintptr_t);
|
||||||
|
(void)c_bpw;
|
||||||
|
|
||||||
std::uintptr_t free_u64 = reinterpret_cast<std::uintptr_t>(free_ptr_);
|
std::uintptr_t free_u64 = reinterpret_cast<std::uintptr_t>(free_ptr_);
|
||||||
|
(void)free_u64;
|
||||||
|
|
||||||
assert(free_u64 % c_bpw == 0ul);
|
assert(free_u64 % c_bpw == 0ul);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -551,7 +551,7 @@ namespace xo {
|
||||||
case generation_result::nursery:
|
case generation_result::nursery:
|
||||||
if (is_before_checkpoint(parent)) {
|
if (is_before_checkpoint(parent)) {
|
||||||
log && log(xtag("act", "N1->N0 must mlog"));
|
log && log(xtag("act", "N1->N0 must mlog"));
|
||||||
|
|
||||||
// N1->N0, so must log
|
// N1->N0, so must log
|
||||||
this->mutation_log_[role2int(role::to_space)]->push_back(MutationLogEntry(parent, lhs));
|
this->mutation_log_[role2int(role::to_space)]->push_back(MutationLogEntry(parent, lhs));
|
||||||
++(this->gc_statistics_.n_logged_mutation_);
|
++(this->gc_statistics_.n_logged_mutation_);
|
||||||
|
|
@ -974,12 +974,14 @@ namespace xo {
|
||||||
|
|
||||||
from_entry.fixup_parent_child_moved(child_to);
|
from_entry.fixup_parent_child_moved(child_to);
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
{
|
{
|
||||||
// verify fixup was effective
|
// verify fixup was effective
|
||||||
IObject * child_from2 = from_entry.child();
|
IObject * child_from2 = from_entry.child();
|
||||||
assert(child_from2 == child_to);
|
assert(child_from2 == child_to);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// P->C', loc(C') in {N1', T'}
|
// P->C', loc(C') in {N1', T'}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue