提交 4c59fc07 创建 作者: Austin Clements's avatar Austin Clements

Fix the same incorrect assumption in replace_vma

Here we already treat the radix tree as the source of truth, so we don't actually care if the VMA has been deleted or not.
上级 5e3c72c4
......@@ -270,9 +270,9 @@ vmap::replace_vma(vma *a, vma *b)
assert(a->vma_start == b->vma_start);
assert(a->vma_end == b->vma_end);
auto span = vmas.search_lock(a->vma_start, a->vma_end - a->vma_start);
#if VM_CRANGE
if (a->deleted())
return false;
#if VM_CRANGE
for (auto e: span)
assert(a == e);
span.replace(b);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论