aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/tcmalloc.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/allocators/tcmalloc.py')
-rw-r--r--src/allocators/tcmalloc.py25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/allocators/tcmalloc.py b/src/allocators/tcmalloc.py
index 24f9b45..7d51bdd 100644
--- a/src/allocators/tcmalloc.py
+++ b/src/allocators/tcmalloc.py
@@ -16,7 +16,7 @@
# along with allocbench.
"""TCMalloc definition for allocbench"""
-from src.allocator import Allocator
+from src.allocator import Allocator, BUILDDIR
from src.artifact import GitArtifact
@@ -62,11 +62,22 @@ class TCMallocGperftools(Allocator):
tcmalloc_gperftools = TCMallocGperftools("TCMalloc-gperftools",
- color="xkcd:blue",
+ color="xkcd:dark blue",
version="gperftools-2.7")
-tcmalloc_gperftools_nofs = TCMallocGperftools(
- "TCMalloc-gperftools-NoFalsesharing",
- patches=["{patchdir}/tcmalloc_2.7_no_active_falsesharing.patch"],
- version="gperftools-2.7",
- color="xkcd:navy")
+tcmalloc_gperftools_nofs = TCMallocGperftools("TCMalloc-NoFalsesharing",
+ patches=["{patchdir}/tcmalloc_2.7_no_active_falsesharing.patch"],
+ version="gperftools-2.7",
+ color="xkcd:navy")
+
+tcmalloc_gperftools_align = TCMallocGperftools("TCMalloc-Aligned",
+ version="gperftools-2.7",
+ color="xkcd:light blue")
+
+tcmalloc_gperftools_align.LD_PRELOAD = f"{BUILDDIR}/align_to_cl.so {tcmalloc_gperftools_align.LD_PRELOAD}"
+
+tcmalloc_gperftools_cacheline_exclusive = TCMalloc("TCMalloc-Cacheline-Exclusive",
+ patches=["{patchdir}/tcmalloc_2.7_cacheline_exclusive.patch"],
+ version="gperftools-2.7",
+ color="xkcd:royal blue")
+