mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Steer away from heap allocations for ProcFS process data
Instead, use more static patterns to acquire that sort of data.
This commit is contained in:
parent
bf1adc2d5d
commit
7ba991dc37
Notes:
sideshowbarker
2024-07-18 07:04:26 +09:00
Author: https://github.com/supercomputer7
Commit: 7ba991dc37
Pull-request: https://github.com/SerenityOS/serenity/pull/9328
Issue: https://github.com/SerenityOS/serenity/issues/9241
Reviewed-by: https://github.com/awesomekling
11 changed files with 991 additions and 879 deletions
|
@ -62,7 +62,6 @@ Thread::Thread(NonnullRefPtr<Process> process, NonnullOwnPtr<Memory::Region> ker
|
|||
, m_kernel_stack_region(move(kernel_stack_region))
|
||||
, m_name(move(name))
|
||||
, m_block_timer(block_timer)
|
||||
, m_global_procfs_inode_index(ProcFSComponentRegistry::the().allocate_inode_index())
|
||||
{
|
||||
bool is_first_thread = m_process->add_thread(*this);
|
||||
if (is_first_thread) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue