aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/tcmalloc
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-10-13 17:16:35 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-10-13 17:16:35 +0200
commit19e1ff660db8a6653d67884d10bc830babc1560d (patch)
treeead4b484e82ac7a2b352ea397e36cee1888703a0 /src/allocators/tcmalloc
parent1c4986fbcfe3a8a012dfade02a4892dc775c7af5 (diff)
downloadallocbench-19e1ff660db8a6653d67884d10bc830babc1560d.tar.gz
allocbench-19e1ff660db8a6653d67884d10bc830babc1560d.zip
improve patch handling in allocator.py
* patches are only applied if they aren't applied already * patch no uses -p0 so git diff patches must be adjusted
Diffstat (limited to 'src/allocators/tcmalloc')
-rw-r--r--src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch b/src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch
index c14172d..a76a2f2 100644
--- a/src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch
+++ b/src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch
@@ -1,7 +1,7 @@
-diff --git a/src/thread_cache.cc b/src/thread_cache.cc
+diff --git src/thread_cache.cc src/thread_cache.cc
index 6d2f832..2074f4a 100644
---- a/src/thread_cache.cc
-+++ b/src/thread_cache.cc
+--- src/thread_cache.cc
++++ src/thread_cache.cc
@@ -120,7 +120,11 @@ void* ThreadCache::FetchFromCentralCache(uint32 cl, int32_t byte_size,
ASSERT(list->empty());
const int batch_size = Static::sizemap()->num_objects_to_move(cl);