修正fork的时候没有正确拷贝vm holes的bug (#433)

This commit is contained in:
LoGin 2023-11-12 13:40:17 +08:00 committed by GitHub
parent c47fe90440
commit ea8ad4d42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,9 @@ impl InnerAddressSpace {
let current_mapper = &mut self.user_mapper.utable;
// 拷贝空洞
new_guard.mappings.vm_holes = self.mappings.vm_holes.clone();
for vma in self.mappings.vmas.iter() {
// TODO: 增加对VMA是否为文件映射的判断如果是的话就跳过