vm->vm_flags |= VMSPACE_EXIT2;
cpu_vmspace_free(vm);
shmexit(vm);
- KKASSERT(vm->vm_upcalls == NULL);
/*
* Lock the map, to wait out all other references to it.
lwkt_gettoken(&vm1->vm_map.token);
vm_map_lock(old_map);
- /*
- * XXX Note: upcalls are not copied.
- */
vm2 = vmspace_alloc(old_map->min_offset, old_map->max_offset);
lwkt_gettoken(&vm2->vm_map.token);
bcopy(&vm1->vm_startcopy, &vm2->vm_startcopy,
/*
* If we are execing a resident vmspace we fork it, otherwise
- * we create a new vmspace. Note that exitingcnt and upcalls
- * are not copied to the new vmspace.
+ * we create a new vmspace. Note that exitingcnt is not
+ * copied to the new vmspace.
*/
lwkt_gettoken(&oldvmspace->vm_map.token);
if (vmcopy) {