mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Small fix
This commit is contained in:
parent
5df91804f6
commit
e1bf007bb9
@ -20,11 +20,6 @@
|
|||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif
|
#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.
|
/** 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,
|
* It is Ok if types are the same. And if types are integral and of the same size,
|
||||||
* example: char, signed char, unsigned char.
|
* example: char, signed char, unsigned char.
|
||||||
|
@ -162,10 +162,10 @@ requires DB::OptionalArgument<TAlign...>
|
|||||||
inline ALWAYS_INLINE void deleteSized(void * ptr, std::size_t size [[maybe_unused]], TAlign... /* align */) noexcept
|
inline ALWAYS_INLINE void deleteSized(void * ptr, std::size_t size [[maybe_unused]], TAlign... /* align */) noexcept
|
||||||
{
|
{
|
||||||
#if USE_GWP_ASAN
|
#if USE_GWP_ASAN
|
||||||
if (unlikely(GuardedAlloc.pointerIsMine(ptr)))
|
if (unlikely(GWPAsan::GuardedAlloc.pointerIsMine(ptr)))
|
||||||
{
|
{
|
||||||
ProfileEvents::increment(ProfileEvents::GWPAsanFree);
|
ProfileEvents::increment(ProfileEvents::GWPAsanFree);
|
||||||
GuardedAlloc.deallocate(ptr);
|
GWPAsan::GuardedAlloc.deallocate(ptr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user