mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
mxtasking: Use larger chunks for task allocator.
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
|||||||
explicit Chunk(void *memory, bool is_allocated) noexcept : _memory(memory), _is_allocated(is_allocated) {}
|
explicit Chunk(void *memory, bool is_allocated) noexcept : _memory(memory), _is_allocated(is_allocated) {}
|
||||||
~Chunk() noexcept = default;
|
~Chunk() noexcept = default;
|
||||||
|
|
||||||
static constexpr auto size() { return 4096 * 4096; /* 16mb */ }
|
static constexpr auto size() { return 4 * 4096 * 4096; /* 16mb */ }
|
||||||
|
|
||||||
explicit operator void *() const noexcept { return _memory; }
|
explicit operator void *() const noexcept { return _memory; }
|
||||||
explicit operator std::uintptr_t() const noexcept { return reinterpret_cast<std::uintptr_t>(_memory); }
|
explicit operator std::uintptr_t() const noexcept { return reinterpret_cast<std::uintptr_t>(_memory); }
|
||||||
|
|||||||
Reference in New Issue
Block a user