diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-11 23:09:23 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-11 23:09:23 +0200 |
| commit | 4fd995ea5a2f9fada2e298bb1b828e510eb2ad29 (patch) | |
| tree | 2202c848283a2ff86967d36e7fc5dbadb81ddf82 /src/allocators/glibc/glibc_2.28_no_passive_falsesharing_fancy.patch | |
| parent | 9d056ff64bf887e2c3479fe515bf7c95cb39e5b6 (diff) | |
| download | allocbench-4fd995ea5a2f9fada2e298bb1b828e510eb2ad29.tar.gz allocbench-4fd995ea5a2f9fada2e298bb1b828e510eb2ad29.zip | |
add patch info to malloc_stats
Diffstat (limited to 'src/allocators/glibc/glibc_2.28_no_passive_falsesharing_fancy.patch')
| -rw-r--r-- | src/allocators/glibc/glibc_2.28_no_passive_falsesharing_fancy.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/allocators/glibc/glibc_2.28_no_passive_falsesharing_fancy.patch b/src/allocators/glibc/glibc_2.28_no_passive_falsesharing_fancy.patch deleted file mode 100644 index 044909b..0000000 --- a/src/allocators/glibc/glibc_2.28_no_passive_falsesharing_fancy.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/malloc/malloc.c b/malloc/malloc.c -index 27cf6137c2..fbd311801d 100644 ---- a/malloc/malloc.c -+++ b/malloc/malloc.c -@@ -4172,6 +4172,12 @@ _int_free (mstate av, mchunkptr p, int have_lock) - - #if USE_TCACHE - { -+ /* Check if chunk is from our own arena or false sharing is not possible -+ because the chunk is cache line aligned and it's size is a multiple -+ of a cacheline */ -+ if (av == thread_arena -+ || (((size_t)p & 63) == 0 && ((size + 2*SIZE_SZ) % 64) == 0)) -+ { - size_t tc_idx = csize2tidx (size); - if (tcache != NULL && tc_idx < mp_.tcache_bins) - { -@@ -4201,6 +4207,7 @@ _int_free (mstate av, mchunkptr p, int have_lock) - return; - } - } -+ } - } - #endif - |
