Skip to content
Snippets Groups Projects
Commit 1c0c71b2 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

AthOptionsParser: Fix bug when checking for tcmalloc preload

USETCMALLOC[MINIMAL] is set to '1' and not 'true' in case it is being
used as a preload.


Former-commit-id: 90966555
parent 9c4de6e1
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
# @file AthenaCommon.AthOptionsParser
# @purpose the central module to parse command line options of athena.py
......@@ -168,13 +168,13 @@ def parse(chk_tcmalloc=True):
warn_tcmalloc = False
libname='libtcmalloc.so'
using_minimaltcmalloc=False
if os.getenv('USETCMALLOCMINIMAL') == 'true':
if os.getenv('USETCMALLOCMINIMAL') == '1':
libname='libtcmalloc_minimal.so'
using_minimaltcmalloc=True
if ldpreload.find(libname) == -1:
using_tcmalloc = False
if (os.getenv('USETCMALLOC') == 'true' or
if (os.getenv('USETCMALLOC') == '1' or
os.getenv('USETCMALLOC') == None):
warn_tcmalloc = True
for arg in sys.argv[1:]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment