aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-02-24 08:40:46 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-02-24 08:40:46 +0000
commit191e7ef3001e422c2f58efe7381d13932e1c1537 (patch)
treea43eadc58d554787712ceb2bcc0990d34a2db9e4 /arch/x86_64/src/memory
parent20f2a4a3e9b8100544a7b3dd57c5959dc6dc066f (diff)
downloadteachos-191e7ef3001e422c2f58efe7381d13932e1c1537.tar.xz
teachos-191e7ef3001e422c2f58efe7381d13932e1c1537.zip
Add noexpect to deallocate calls
Diffstat (limited to 'arch/x86_64/src/memory')
-rw-r--r--arch/x86_64/src/memory/heap/bump_allocator.cpp2
-rw-r--r--arch/x86_64/src/memory/heap/global_heap_allocator.cpp2
-rw-r--r--arch/x86_64/src/memory/heap/linked_list_allocator.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/src/memory/heap/bump_allocator.cpp b/arch/x86_64/src/memory/heap/bump_allocator.cpp
index a9fb121..df95346 100644
--- a/arch/x86_64/src/memory/heap/bump_allocator.cpp
+++ b/arch/x86_64/src/memory/heap/bump_allocator.cpp
@@ -42,7 +42,7 @@ namespace teachos::arch::memory::heap
}
}
- auto bump_allocator::deallocate(void * pointer) -> void
+ auto bump_allocator::deallocate(void * pointer) noexcept -> void
{
if (pointer)
{
diff --git a/arch/x86_64/src/memory/heap/global_heap_allocator.cpp b/arch/x86_64/src/memory/heap/global_heap_allocator.cpp
index 235c544..c1ca160 100644
--- a/arch/x86_64/src/memory/heap/global_heap_allocator.cpp
+++ b/arch/x86_64/src/memory/heap/global_heap_allocator.cpp
@@ -10,7 +10,7 @@ namespace teachos::arch::memory::heap
auto global_heap_allocator::allocate(std::size_t size) -> void * { return get().allocate(size); }
- auto global_heap_allocator::deallocate(void * pointer) -> void { get().deallocate(pointer); }
+ auto global_heap_allocator::deallocate(void * pointer) noexcept -> void { get().deallocate(pointer); }
auto global_heap_allocator::register_heap_allocator(heap_allocator_type new_type) -> void
{
diff --git a/arch/x86_64/src/memory/heap/linked_list_allocator.cpp b/arch/x86_64/src/memory/heap/linked_list_allocator.cpp
index 9beb466..a824c8a 100644
--- a/arch/x86_64/src/memory/heap/linked_list_allocator.cpp
+++ b/arch/x86_64/src/memory/heap/linked_list_allocator.cpp
@@ -59,7 +59,7 @@ namespace teachos::arch::memory::heap
exception_handling::panic("[Linked List Allocator] Out of memory");
}
- auto linked_list_allocator::deallocate(void * pointer) -> void
+ auto linked_list_allocator::deallocate(void * pointer) noexcept -> void
{
mutex.lock();