Skip to content

Commit 22055fc

Browse files
authored
Merge pull request cms-sw#42724 from Dr15Jones/fixSl7AllocMonitor
Apply ld fix for AllocMonitor to sl7 as well
2 parents 0a9cdd2 + 10dba46 commit 22055fc

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)