From 6da8769acff639f418b165fd729c412495024836 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 28 Aug 2019 14:16:52 +0200 Subject: exclude aligned_alloc from SuperMalloc build --- .../SuperMalloc/remove_faulty_aligned_alloc_test.patch | 13 +++++++++++++ src/allocators/supermalloc.py | 1 + 2 files changed, 14 insertions(+) create mode 100644 src/allocators/SuperMalloc/remove_faulty_aligned_alloc_test.patch diff --git a/src/allocators/SuperMalloc/remove_faulty_aligned_alloc_test.patch b/src/allocators/SuperMalloc/remove_faulty_aligned_alloc_test.patch new file mode 100644 index 0000000..dc7f7c4 --- /dev/null +++ b/src/allocators/SuperMalloc/remove_faulty_aligned_alloc_test.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.include b/Makefile.include +index bb3cef3..09ee7eb 100644 +--- a/Makefile.include ++++ b/Makefile.include +@@ -37,7 +37,7 @@ default: tests + #lib: $(LIB)/libsupermalloc.so + #.PHONY: lib + +-TESTS = aligned_alloc calloc posix_memalign $(UNITTESTS) test-malloc_test new-malloc-test malloc-test-fixed-work test22 cache-index madvise-small test38 test-no-overlaps #unit-timing ++TESTS = calloc posix_memalign $(UNITTESTS) test-malloc_test new-malloc-test malloc-test-fixed-work test22 cache-index madvise-small test38 test-no-overlaps #unit-timing + TESTS_IN_DIR = $(patsubst %, $(BLD)/%, $(TESTS)) + + LDFLAGS += -ldl diff --git a/src/allocators/supermalloc.py b/src/allocators/supermalloc.py index 0c4040b..b895983 100644 --- a/src/allocators/supermalloc.py +++ b/src/allocators/supermalloc.py @@ -36,6 +36,7 @@ class SuperMalloc(Allocator): kwargs["LD_PRELOAD"] = "{srcdir}/release/lib/libsupermalloc.so" kwargs["build_cmds"] = ["cd {srcdir}/release; make", "mkdir -p {dir}"] + kwargs["patches"] = ["{patchdir}/remove_faulty_aligned_alloc_test.patch"] super().__init__(name, **kwargs) -- cgit v1.2.3