From 19e1ff660db8a6653d67884d10bc830babc1560d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 13 Oct 2019 17:16:35 +0200 Subject: 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 --- src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/allocators/tcmalloc') 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); -- cgit v1.2.3