summaryrefslogtreecommitdiff
path: root/Kernel/Heap/Heap.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-04 10:58:40 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-04 11:25:45 +0100
commita1d1a3b50b3c00effa8ea44dd7c1c080eed8c34b (patch)
tree0a0755c88cc65d517887a7603a617fb7689c1700 /Kernel/Heap/Heap.h
parent40552bb5fba41070adb8924fcfdbc18b13a117a0 (diff)
downloadserenity-a1d1a3b50b3c00effa8ea44dd7c1c080eed8c34b.zip
Kernel: Use BitmapView instead of Bitmap::wrap()
Diffstat (limited to 'Kernel/Heap/Heap.h')
-rw-r--r--Kernel/Heap/Heap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Heap/Heap.h b/Kernel/Heap/Heap.h
index 2bf8bf9980..f5c82f402c 100644
--- a/Kernel/Heap/Heap.h
+++ b/Kernel/Heap/Heap.h
@@ -26,7 +26,7 @@
#pragma once
-#include <AK/Bitmap.h>
+#include <AK/BitmapView.h>
#include <AK/ScopeGuard.h>
#include <AK/TemporaryChange.h>
#include <AK/Vector.h>
@@ -52,7 +52,7 @@ public:
Heap(u8* memory, size_t memory_size)
: m_total_chunks(calculate_chunks(memory_size))
, m_chunks(memory)
- , m_bitmap(Bitmap::wrap(memory + m_total_chunks * CHUNK_SIZE, m_total_chunks))
+ , m_bitmap(memory + m_total_chunks * CHUNK_SIZE, m_total_chunks)
{
// To keep the alignment of the memory passed in, place the bitmap
// at the end of the memory block.
@@ -170,7 +170,7 @@ private:
size_t m_total_chunks { 0 };
size_t m_allocated_chunks { 0 };
u8* m_chunks { nullptr };
- Bitmap m_bitmap;
+ BitmapView m_bitmap;
};
template<typename ExpandHeap>