From a6d18f842ae736f219fc431391bfe8aac36ff736 Mon Sep 17 00:00:00 2001 From: Nathaniel Filardo Date: Fri, 20 Nov 2020 15:32:14 +0000 Subject: [PATCH] NFC: Mark AAL methods noexcept --- src/aal/aal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aal/aal.h b/src/aal/aal.h index 9e3fbaf..69d5480 100644 --- a/src/aal/aal.h +++ b/src/aal/aal.h @@ -102,7 +102,7 @@ namespace snmalloc * architectures to avoid needing to implement a custom `prefetch` method * if they are used only with a compiler that provides the builtin. */ - static inline void prefetch(void* ptr) + static inline void prefetch(void* ptr) noexcept { #if __has_builtin(__builtin_prefetch) && !defined(SNMALLOC_NO_AAL_BUILTINS) __builtin_prefetch(ptr); @@ -119,7 +119,7 @@ namespace snmalloc * architectures to avoid needing to implement a custom `tick` method * if they are used only with a compiler that provides the builtin. */ - static inline uint64_t tick() + static inline uint64_t tick() noexcept { if constexpr ( (Arch::aal_features & NoCpuCycleCounters) == NoCpuCycleCounters)