aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/allocator.py2
-rw-r--r--src/allocators/bumpptr.py4
-rw-r--r--src/benchmarks/loop.py2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/allocator.py b/src/allocator.py
index 2e223fe..73f2777 100644
--- a/src/allocator.py
+++ b/src/allocator.py
@@ -177,5 +177,3 @@ def patch_alloc(name, alloc, patches, **kwargs):
return new_alloc
-
-bumpptr = Allocator("bumpptr", LD_PRELOAD=os.path.join(builddir, "bumpptr_alloc.so"), color="xkcd:black")
diff --git a/src/allocators/bumpptr.py b/src/allocators/bumpptr.py
new file mode 100644
index 0000000..f95a884
--- /dev/null
+++ b/src/allocators/bumpptr.py
@@ -0,0 +1,4 @@
+import os
+from src.allocator import Allocator, builddir
+
+bumpptr = Allocator("bumpptr", LD_PRELOAD=os.path.join(builddir, "bumpptr_alloc.so"), color="xkcd:black")
diff --git a/src/benchmarks/loop.py b/src/benchmarks/loop.py
index 595c54a..ea35adc 100644
--- a/src/benchmarks/loop.py
+++ b/src/benchmarks/loop.py
@@ -1,5 +1,5 @@
-from src.allocator import bumpptr
from src.benchmark import Benchmark
+from src.allocators.bumpptr import bumpptr
class Benchmark_Loop(Benchmark):