mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +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
Notes:
sideshowbarker
2024-07-18 04:08:29 +09:00
Author: https://github.com/bgianfo
Commit: d158f2ed89
Pull-request: https://github.com/SerenityOS/serenity/pull/9972
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/petelliott
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