aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
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/include
parent20f2a4a3e9b8100544a7b3dd57c5959dc6dc066f (diff)
downloadteachos-191e7ef3001e422c2f58efe7381d13932e1c1537.tar.xz
teachos-191e7ef3001e422c2f58efe7381d13932e1c1537.zip
Add noexpect to deallocate calls
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/heap/bump_allocator.hpp2
-rw-r--r--arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp2
-rw-r--r--arch/x86_64/include/arch/memory/heap/heap_allocator.hpp2
-rw-r--r--arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86_64/include/arch/memory/heap/bump_allocator.hpp b/arch/x86_64/include/arch/memory/heap/bump_allocator.hpp
index 74734af..011f45c 100644
--- a/arch/x86_64/include/arch/memory/heap/bump_allocator.hpp
+++ b/arch/x86_64/include/arch/memory/heap/bump_allocator.hpp
@@ -35,7 +35,7 @@ namespace teachos::arch::memory::heap
*
* @note Simply does nothing, because this allocator leaks all memory
*/
- auto deallocate(void * pointer) -> void override;
+ auto deallocate(void * pointer) noexcept -> void override;
private:
std::size_t heap_start; ///< Start of the allocatable heap area
diff --git a/arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp b/arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp
index a1621b5..dff837e 100644
--- a/arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp
+++ b/arch/x86_64/include/arch/memory/heap/global_heap_allocator.hpp
@@ -53,7 +53,7 @@ namespace teachos::arch::memory::heap
*
* @param pointer Previously allocated memory area, that should now be freed
*/
- static auto deallocate(void * pointer) -> void;
+ static auto deallocate(void * pointer) noexcept -> void;
private:
static heap_allocator * allocator_instance; ///< Instance used to actually allocate and deallocate
diff --git a/arch/x86_64/include/arch/memory/heap/heap_allocator.hpp b/arch/x86_64/include/arch/memory/heap/heap_allocator.hpp
index 01657f2..6aed3d8 100644
--- a/arch/x86_64/include/arch/memory/heap/heap_allocator.hpp
+++ b/arch/x86_64/include/arch/memory/heap/heap_allocator.hpp
@@ -36,7 +36,7 @@ namespace teachos::arch::memory::heap
*
* @param pointer Previously allocated memory area, that should now be freed
*/
- virtual auto deallocate(void * pointer) -> void = 0;
+ virtual auto deallocate(void * pointer) noexcept -> void = 0;
};
} // namespace teachos::arch::memory::heap
diff --git a/arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp b/arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp
index d53756d..df9e370 100644
--- a/arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp
+++ b/arch/x86_64/include/arch/memory/heap/linked_list_allocator.hpp
@@ -35,7 +35,7 @@ namespace teachos::arch::memory::heap
*/
auto allocate(std::size_t size) -> void * override;
- auto deallocate(void * pointer) -> void override;
+ auto deallocate(void * pointer) noexcept -> void override;
private:
/**