On Mon, Dec 23, 2024 at 10:11:10AM +0300, Sergey Bugaev wrote:
> > +
> > + vm_map_lock(parent_task->map);
> > + vm_map_copy_limits(parent_task->map, new_task->map);
> > + vm_map_unlock(parent_task->map);
>
> Should this instead be done as a part of vm_map_
On Mon, Dec 23, 2024 at 10:09:35AM -0300, Diego Nieto Cid wrote:
> >
> > No, this would lock/unlock the map twice. Rather see if you can do the
> > check after the map is already locked, perhaps right before "See
> > whether we can avoid creating a new entry ...".
> >
>
> At that point vm_map_fin
From: Diego Nieto Cid
* include/mach/gnumach.defs: (task_set_vm_limit) new routine
(task_get_vm_limit) likewise
* kern/task.c: (task_create_kernel) if parent_task is not null copy virtual
memory limit
(task_set_vm_limit) new function
(task_get_vm_limit) likewise
* tests/test-ta