From 7fc85d1ff089a882a2c764cd4da3f593f1f9ccda Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 10 Jan 2019 16:26:57 +0300 Subject: [PATCH] Investigation of performance degradation of jemalloc --- libs/libcommon/src/tests/allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libcommon/src/tests/allocator.cpp b/libs/libcommon/src/tests/allocator.cpp index 8664d4cb073..a6eff63b20d 100644 --- a/libs/libcommon/src/tests/allocator.cpp +++ b/libs/libcommon/src/tests/allocator.cpp @@ -24,7 +24,7 @@ void thread_func() abort(); buf = new_buf; - memset(buf + size, 0, next_size - size); + memset(reinterpret_cast(buf) + size, 0, next_size - size); size = next_size; }