mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 02:58:12 +00:00
Kernel: No need to manually deallocate kernel stack Region in ~Thread()
Since we're keeping this Region in an OwnPtr, it will be torn down when we get to ~OwnPtr anyway.
This commit is contained in:
parent
57e73e4533
commit
d5f3972012
1 changed files with 0 additions and 3 deletions
|
@ -121,9 +121,6 @@ Thread::~Thread()
|
||||||
|
|
||||||
if (m_userspace_stack_region)
|
if (m_userspace_stack_region)
|
||||||
m_process.deallocate_region(*m_userspace_stack_region);
|
m_process.deallocate_region(*m_userspace_stack_region);
|
||||||
|
|
||||||
if (m_kernel_stack_region)
|
|
||||||
m_process.deallocate_region(*m_kernel_stack_region);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Thread::unblock()
|
void Thread::unblock()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue