vm: implement lazy-attach cow-duplication of vm-objects attached to a controller

This commit is contained in:
2026-04-19 20:16:19 +01:00
parent b3be4c541b
commit 4a9e907a75
9 changed files with 332 additions and 72 deletions
+2 -1
View File
@@ -506,8 +506,9 @@ kern_status_t sys_task_duplicate(
struct task *new_task = task_create(
self->t_name,
strlen(self->t_name),
NULL);
child_handle_table);
if (!new_task) {
handle_table_destroy(child_handle_table);
put_current_task(self);
return KERN_NO_MEMORY;
}