Compare commits
3 Commits
cce7d29410
...
f8bf1c6eb4
Author | SHA1 | Date | |
---|---|---|---|
f8bf1c6eb4 | |||
4da2a01614 | |||
bb0e654040 |
@@ -1365,6 +1365,10 @@ Node *erase(Node *self, NodeAllocators *allocators, ConflictSet::Impl *impl,
|
||||
if (toRemoveChildrenIndex != lastChildrenIndex) {
|
||||
parent48->children[toRemoveChildrenIndex] =
|
||||
parent48->children[lastChildrenIndex];
|
||||
parent48->maxOfMax[toRemoveChildrenIndex >> Node48::kMaxOfMaxShift] =
|
||||
std::max(parent48->maxOfMax[toRemoveChildrenIndex >>
|
||||
Node48::kMaxOfMaxShift],
|
||||
parent48->children[toRemoveChildrenIndex].childMaxVersion);
|
||||
auto parentIndex =
|
||||
parent48->children[toRemoveChildrenIndex].child->parentsIndex;
|
||||
parent48->index[parentIndex] = toRemoveChildrenIndex;
|
||||
@@ -1726,7 +1730,7 @@ bool checkMaxBetweenExclusive(Node *n, int begin, int end,
|
||||
if (self->maxOfMax[i] > readVersion) {
|
||||
for (int j = 0; j < Node48::kMaxOfMaxPageSize; ++j) {
|
||||
int k = (i << Node48::kMaxOfMaxShift) + j;
|
||||
result &= !(self->children[k].childMaxVersion > readVersion &&
|
||||
result &= !((self->children[k].childMaxVersion > readVersion) &
|
||||
inBounds(self->reverseIndex[k]));
|
||||
}
|
||||
}
|
||||
@@ -1771,7 +1775,6 @@ bool checkMaxBetweenExclusive(Node *n, int begin, int end,
|
||||
default: // GCOVR_EXCL_LINE
|
||||
__builtin_unreachable(); // GCOVR_EXCL_LINE
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Vector<uint8_t> getSearchPath(Arena &arena, Node *n) {
|
||||
|
Reference in New Issue
Block a user