mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 19:36:47 +00:00
修正fork的时候没有正确拷贝vm holes的bug (#433)
This commit is contained in:
parent
c47fe90440
commit
ea8ad4d42e
@ -162,6 +162,9 @@ impl InnerAddressSpace {
|
|||||||
|
|
||||||
let current_mapper = &mut self.user_mapper.utable;
|
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() {
|
for vma in self.mappings.vmas.iter() {
|
||||||
// TODO: 增加对VMA是否为文件映射的判断,如果是的话,就跳过
|
// TODO: 增加对VMA是否为文件映射的判断,如果是的话,就跳过
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user