aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/supermalloc.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:34:31 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:34:31 +0100
commit3884a7712b74c09d4216b856464d6c3cdd9e3476 (patch)
tree1ccef133671bc885a46ea54edc39f983fc4ef298 /src/allocators/supermalloc.py
parent8b416335805fc07262c0570bda324afccb5e3da3 (diff)
downloadallocbench-3884a7712b74c09d4216b856464d6c3cdd9e3476.tar.gz
allocbench-3884a7712b74c09d4216b856464d6c3cdd9e3476.zip
fmt all src/allocators using yapf
Diffstat (limited to 'src/allocators/supermalloc.py')
-rw-r--r--src/allocators/supermalloc.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/allocators/supermalloc.py b/src/allocators/supermalloc.py
index f0a192a..32f9588 100644
--- a/src/allocators/supermalloc.py
+++ b/src/allocators/supermalloc.py
@@ -14,26 +14,29 @@
#
# You should have received a copy of the GNU General Public License
# along with allocbench.
-
"""SuperMalloc definition for allocbench"""
from src.allocator import Allocator
from src.artifact import GitArtifact
+
class SuperMalloc(Allocator):
"""SuperMalloc allocator"""
- sources = GitArtifact("SuperMalloc", "https://github.com/kuszmaul/SuperMalloc")
+ sources = GitArtifact("SuperMalloc",
+ "https://github.com/kuszmaul/SuperMalloc")
def __init__(self, name, **kwargs):
self.LD_PRELOAD = "{dir}/libsupermalloc.so"
- self.build_cmds = ["cd {srcdir}/release; make",
- "mkdir -p {dir}",
- "ln -f -s {srcdir}/release/lib/libsupermalloc.so {dir}/libsupermalloc.so"]
+ self.build_cmds = [
+ "cd {srcdir}/release; make", "mkdir -p {dir}",
+ "ln -f -s {srcdir}/release/lib/libsupermalloc.so {dir}/libsupermalloc.so"
+ ]
self.patches = ["{patchdir}/remove_faulty_aligned_alloc_test.patch"]
super().__init__(name, **kwargs)
-supermalloc = SuperMalloc("SuperMalloc", color="xkcd:lime",
+supermalloc = SuperMalloc("SuperMalloc",
+ color="xkcd:lime",
version="709663fb81ba091b0a78058869a644a272f4163d")