mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
Kernel: Zero initialize SlabAllocator member variables
PVS-Studio flagged these as uninitialized. While there is no bug here, it is our policy to always initialize members to avoid potential bugs in the future.
This commit is contained in:
parent
27a124f7d8
commit
d158f2ed89
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ private:
|
|||
};
|
||||
|
||||
Atomic<FreeSlab*> m_freelist { nullptr };
|
||||
Atomic<size_t, AK::MemoryOrder::memory_order_relaxed> m_num_allocated;
|
||||
size_t m_slab_count;
|
||||
Atomic<size_t, AK::MemoryOrder::memory_order_relaxed> m_num_allocated { 0 };
|
||||
size_t m_slab_count { 0 };
|
||||
void* m_base { nullptr };
|
||||
void* m_end { nullptr };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue