MmapPool: Merge blocks on deallocation if possible

This commit is contained in:
2017-01-05 14:25:54 +01:00
parent a35e04c049
commit 8e0b742748
4 changed files with 37 additions and 27 deletions

View File

@ -391,7 +391,7 @@ struct Integer
{
auto tmp = Integer(h);
tmp.subtract(rep);
rep = tmp.rep;
swap(rep, tmp.rep);
sign = length == 0 ? false : h.sign;
}
}
@ -408,7 +408,7 @@ struct Integer
{
auto tmp = Integer(h);
tmp.subtract(rep);
rep = tmp.rep;
swap(rep, tmp.rep);
sign = length == 0 ? false : !sign;
}
}