Skip to content

Commit 10dba46

Browse files
committed
Apply ld fix for AllocMonitor to sl7 as well
The sl7 dynamic loader also does allocations so needs the work around.
1 parent 0295cb1 commit 10dba46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PerfTools/AllocMonitorPreload/src/memory_proxies.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#if !defined(__x86_64__) && !defined(__i386__)
1313
#define USE_LOCAL_MALLOC
1414
#endif
15+
#if defined(__GLIBC__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ < 28)
16+
//needed for sl7
17+
#define USE_LOCAL_MALLOC
18+
#endif
1519

1620
namespace {
1721
std::atomic<bool>& alloc_monitor_running_state() {

0 commit comments

Comments
 (0)