aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-05-06 16:56:32 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-06-02 11:18:47 +0200
commit8174a918ea3b7cb216bf7ea98cfdc10661b5c37d (patch)
tree0747ec3ccb9f8d7eeccfac35977fc17855ca3bbb /src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch
parent8f52e8fc02dd235582f5961941bcd564e9a681cd (diff)
downloadallocbench-8174a918ea3b7cb216bf7ea98cfdc10661b5c37d.tar.gz
allocbench-8174a918ea3b7cb216bf7ea98cfdc10661b5c37d.zip
make the whole project more python idiomatic
* rename src directory to allocbench * make global variable names UPPERCASE * format a lot of code using yapf * use lowercase ld_preload and ld_library_path as Allocator members * name expected Errors 'err' and don't raise a new Exception * disable some pylint messages
Diffstat (limited to 'src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch')
-rw-r--r--src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch17
1 files changed, 0 insertions, 17 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
deleted file mode 100644
index a76a2f2..0000000
--- a/src/allocators/tcmalloc/tcmalloc_2.7_no_active_falsesharing.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git src/thread_cache.cc src/thread_cache.cc
-index 6d2f832..2074f4a 100644
---- 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);
-
-- const int num_to_move = min<int>(list->max_length(), batch_size);
-+ int num_to_move = min<int>(list->max_length(), batch_size);
-+ const int cache_line_parts = 64 / byte_size;
-+ if (cache_line_parts > 0 && cache_line_parts > num_to_move)
-+ num_to_move = cache_line_parts;
-+
- void *start, *end;
- int fetch_count = Static::central_cache()[cl].RemoveRange(
- &start, &end, num_to_move);