CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/06/03 02:38:17
Modified files:
sys/kern : kern_exit.c
sys/uvm : uvm_extern.h uvm_glue.c uvm_map.c
Log message:
Let the last thread of a process teardown its VM space in exit1().
Move the hard work from uvm_exit() to uvm_purge(). Let the reaper, or last
owner of the VM reference, free the pmap and the VM descriptor.
VMMAP_DEBUG still work even when uvm_map_teardown() is called a second time
with an empty map. This could be optimized later.
ok kettenis@, claudio@, jca@