From 2a7f29cba86d7d77b4ab751c7ea2964d756b7c74 Mon Sep 17 00:00:00 2001 From: iwabuchi Date: Fri, 22 Sep 2023 20:21:49 -0700 Subject: [PATCH] Remove asserts that cause false positive race warnings --- include/metall/kernel/manager_kernel_impl.ipp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/metall/kernel/manager_kernel_impl.ipp b/include/metall/kernel/manager_kernel_impl.ipp index 29b01498..6f4eaa20 100644 --- a/include/metall/kernel/manager_kernel_impl.ipp +++ b/include/metall/kernel/manager_kernel_impl.ipp @@ -94,9 +94,6 @@ void *manager_kernel::allocate( return nullptr; } assert(offset >= 0); -#if !(defined(__has_feature) && __has_feature(thread_sanitizer)) - assert(offset + nbytes <= m_segment_storage.size()); -#endif return priv_to_address(offset); } @@ -117,9 +114,6 @@ void *manager_kernel::allocate_aligned( return nullptr; } assert(offset >= 0); -#if !(defined(__has_feature) && __has_feature(thread_sanitizer)) - assert(offset + nbytes <= m_segment_storage.size()); -#endif auto *addr = priv_to_address(offset); assert((uint64_t)addr % alignment == 0);