Optimize stack initialization by not using malloc, and remove use of 'goto' (for code review safety) #41

Merged
td1223 merged 4 commits from stack-init-optimize into master 2024-11-14 16:06:23 +00:00
Showing only changes of commit e4036c715f - Show all commits

View File

@@ -149,9 +149,9 @@ start_process (void *proc_start_data)
sema_up (&data->loaded);
thread_exit ();
}
thread_current ()->exec_file = exec_file;
file_deny_write (exec_file);
lock_release (&filesys_lock);
thread_current ()->exec_file = exec_file;
data->success = load (data->file_name, &if_.eip, &if_.esp);