[PATCH 7/7] Remove variable length arrays and declarations within code
Jason Evans
jasone at canonware.com
Sun Apr 22 01:08:19 PDT 2012
On Apr 19, 2012, at 11:38 PM, Mike Hommey wrote:
> From: Mike Hommey <mh at glandium.org>
>
> MSVC doesn't support C99, and building as C++ to be able to use them is
> dangerous, as C++ and C99 are incompatible.
> ---
> include/jemalloc/internal/prof.h | 3 ++-
> src/arena.c | 17 ++++++++++-------
> src/chunk_mmap.c | 5 +++--
> src/ctl.c | 6 ++++--
> src/stats.c | 12 ++++++++----
> src/tsd.c | 2 +-
> test/bitmap.c | 12 ++++++++----
> 7 files changed, 36 insertions(+), 21 deletions(-)
This diff adds calls to malloc/free from within the allocator, which perturbs heap profiling. imalloc/idalloc are probably what you want instead.
Jason
More information about the jemalloc-discuss
mailing list