mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
Kernel: Handle OOM when allocating Thread FPUState
Move FPUState allocation to Thread::try_create so that allocation failure can be observed properly by the caller.
This commit is contained in:
parent
4fb962a0b9
commit
60efe18a31
2 changed files with 11 additions and 4 deletions
|
@ -1188,7 +1188,7 @@ public:
|
|||
InodeIndex global_procfs_inode_index() const { return m_global_procfs_inode_index; }
|
||||
|
||||
private:
|
||||
Thread(NonnullRefPtr<Process>, NonnullOwnPtr<Region>, NonnullRefPtr<Timer>);
|
||||
Thread(NonnullRefPtr<Process>, NonnullOwnPtr<Region>, NonnullRefPtr<Timer>, FPUState*);
|
||||
|
||||
IntrusiveListNode<Thread> m_process_thread_list_node;
|
||||
int m_runnable_priority { -1 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue