mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Kernel: Switch singletons to use new Singleton class
MemoryManager cannot use the Singleton class because MemoryManager::initialize is called before the global constructors are run. That caused the Singleton to be re-initialized, causing it to create another MemoryManager instance. Fixes #3226
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 03:11:19 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/d89582880ed Pull-request: https://github.com/SerenityOS/serenity/pull/3287
@@ -78,6 +78,7 @@ public:
|
||||
int m_flags;
|
||||
};
|
||||
|
||||
static void initialize();
|
||||
static VFS& the();
|
||||
|
||||
VFS();
|
||||
|
||||
Reference in New Issue
Block a user