1
Fork 0
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:
Brian Gianforcaro 2021-07-01 13:32:59 -07:00 committed by Andreas Kling
parent 4fb962a0b9
commit 60efe18a31
2 changed files with 11 additions and 4 deletions

View file

@ -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 };