Small fix

This commit is contained in:
Antonio Andelic 2024-06-03 14:18:15 +02:00
parent 5df91804f6
commit e1bf007bb9
2 changed files with 2 additions and 7 deletions

View File

@ -20,11 +20,6 @@
#include <sys/mman.h>
#endif
#if USE_GWP_ASAN
# include <gwp_asan/platform_specific/guarded_pool_allocator_tls.h>
#endif
/** Whether we can use memcpy instead of a loop with assignment to T from U.
* It is Ok if types are the same. And if types are integral and of the same size,
* example: char, signed char, unsigned char.

View File

@ -162,10 +162,10 @@ requires DB::OptionalArgument<TAlign...>
inline ALWAYS_INLINE void deleteSized(void * ptr, std::size_t size [[maybe_unused]], TAlign... /* align */) noexcept
{
#if USE_GWP_ASAN
if (unlikely(GuardedAlloc.pointerIsMine(ptr)))
if (unlikely(GWPAsan::GuardedAlloc.pointerIsMine(ptr)))
{
ProfileEvents::increment(ProfileEvents::GWPAsanFree);
GuardedAlloc.deallocate(ptr);
GWPAsan::GuardedAlloc.deallocate(ptr);
return;
}
#endif