Skip to content

Commit

Permalink
*: Fix USE_JEMALLOC macro (pingcap#9083) (pingcap#198)
Browse files Browse the repository at this point in the history
Co-authored-by: Lloyd-Pottiger <[email protected]>
  • Loading branch information
CalvinNeo and Lloyd-Pottiger authored May 24, 2024
1 parent ea8f685 commit fbf91ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/src/Common/MemoryAllocTrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
#include <Common/MemoryAllocTrace.h>
#include <common/config_common.h> // Included for `USE_JEMALLOC`

#ifdef USE_JEMALLOC
#if USE_JEMALLOC
#include <jemalloc/jemalloc.h>
#endif

namespace DB
{
std::tuple<uint64_t *, uint64_t *> getAllocDeallocPtr()
{
#ifdef USE_JEMALLOC
#if USE_JEMALLOC
uint64_t * ptr1 = nullptr;
uint64_t size1 = sizeof ptr1;
je_mallctl("thread.allocatedp", reinterpret_cast<void *>(&ptr1), &size1, nullptr, 0);
Expand Down

0 comments on commit fbf91ad

Please sign in to comment.