1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:57:46 +00:00

Kernel: Remove all uses of MAKE_SLAB_ALLOCATED()

Objects that were previously allocated via slab_alloc()/slab_dealloc()
now go through kmalloc()/kfree_sized() instead.
This commit is contained in:
Andreas Kling 2021-12-26 18:45:23 +01:00
parent 2a5cff232b
commit 43099fb387
4 changed files with 0 additions and 5 deletions

View file

@ -20,7 +20,6 @@ namespace Kernel {
// FIXME: Custody needs some locking.
class Custody : public RefCountedBase {
MAKE_SLAB_ALLOCATED(Custody)
public:
bool unref() const;

View file

@ -24,7 +24,6 @@ public:
};
class OpenFileDescription : public RefCounted<OpenFileDescription> {
MAKE_SLAB_ALLOCATED(OpenFileDescription)
public:
static ErrorOr<NonnullRefPtr<OpenFileDescription>> try_create(Custody&);
static ErrorOr<NonnullRefPtr<OpenFileDescription>> try_create(File&);

View file

@ -32,7 +32,6 @@ class Region final
: public Weakable<Region> {
friend class MemoryManager;
MAKE_SLAB_ALLOCATED(Region)
public:
enum Access : u8 {
None = 0,

View file

@ -46,8 +46,6 @@ private:
explicit WorkQueue(StringView);
struct WorkItem {
MAKE_SLAB_ALLOCATED(WorkItem);
public:
IntrusiveListNode<WorkItem> m_node;
Function<void()> function;