aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/tcmalloc.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-19 13:15:24 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-19 13:15:24 +0100
commit34d396db1cb42627f398dd094c0622435a4035e4 (patch)
tree9a99675abc7bd9b019b20969ccf8407d98750539 /src/allocators/tcmalloc.py
parent7017f4774c5e33a84ddf662af9689b7b4ab290ce (diff)
downloadallocbench-34d396db1cb42627f398dd094c0622435a4035e4.tar.gz
allocbench-34d396db1cb42627f398dd094c0622435a4035e4.zip
add aligned version of new tcmalloc implementation
Diffstat (limited to 'src/allocators/tcmalloc.py')
-rw-r--r--src/allocators/tcmalloc.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/allocators/tcmalloc.py b/src/allocators/tcmalloc.py
index 7d51bdd..b951ff5 100644
--- a/src/allocators/tcmalloc.py
+++ b/src/allocators/tcmalloc.py
@@ -42,6 +42,12 @@ tcmalloc = TCMalloc("TCMalloc",
color="xkcd:blue",
version="1676100265bd189df6b5513feac15f102542367e")
+tcmalloc_align = TCMallocGperftools("TCMalloc-Aligned",
+ version="1676100265bd189df6b5513feac15f102542367e",
+ color="xkcd:light blue")
+
+tcmalloc_align.LD_PRELOAD = f"{BUILDDIR}/align_to_cl.so {tcmalloc_align.LD_PRELOAD}"
+
class TCMallocGperftools(Allocator):
"""gperftools TCMalloc allocator"""
@@ -72,7 +78,7 @@ tcmalloc_gperftools_nofs = TCMallocGperftools("TCMalloc-NoFalsesharing",
tcmalloc_gperftools_align = TCMallocGperftools("TCMalloc-Aligned",
version="gperftools-2.7",
- color="xkcd:light blue")
+ color="xkcd:navy blue")
tcmalloc_gperftools_align.LD_PRELOAD = f"{BUILDDIR}/align_to_cl.so {tcmalloc_gperftools_align.LD_PRELOAD}"