server-skynet-source-3rd-je.../test/integration
Dave Watson 2319152d9f jemalloc cpp new/delete bindings
Adds cpp bindings for jemalloc, along with necessary autoconf settings.
This is mostly to add sized deallocation support, which can't be added
from C directly.  Sized deallocation is ~10% microbench improvement.

* Import ax_cxx_compile_stdcxx.m4 from the autoconf repo, seems like the
  easiest way to get c++14 detection.
* Adds various other changes, like CXXFLAGS, to configure.ac.
* Adds new rules to Makefile.in for src/jemalloc-cpp.cpp, and a basic
  unittest.
* Both new and delete are overridden, to ensure jemalloc is used for
  both.
* TODO future enhancement of avoiding extra PLT thunks for new and
  delete - sdallocx and malloc are publicly exported jemalloc symbols,
  using an alias would link them directly.  Unfortunately, was having
  trouble getting it to play nice with jemalloc's namespace support.

Testing:
Tested gcc 4.8, gcc 5, gcc 5.2, clang 4.0.  Only gcc >= 5 has sized
deallocation support, verified that the rest build correctly.

Tested mac osx and Centos.

Tested --with-jemalloc-prefix and --without-export.

This resolves #202.
2016-12-12 18:36:06 -08:00
..
cpp jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
aligned_alloc.c Reduce memory requirements for regression tests. 2016-10-28 11:23:24 -07:00
allocated.c Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-10-27 21:31:25 -07:00
extent.c Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-10-27 21:31:25 -07:00
MALLOCX_ARENA.c Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-10-27 21:31:25 -07:00
mallocx.c Reduce memory requirements for regression tests. 2016-10-28 11:23:24 -07:00
overflow.c Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-10-27 21:31:25 -07:00
posix_memalign.c Reduce memory requirements for regression tests. 2016-10-28 11:23:24 -07:00
rallocx.c Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-10-27 21:31:25 -07:00
sdallocx.c Reduce memory usage for sdallocx() test_alignment_and_size. 2016-11-11 23:50:35 -08:00
thread_arena.c Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-10-27 21:31:25 -07:00
thread_tcache_enabled.c Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-10-27 21:31:25 -07:00
xallocx.c Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-10-27 21:31:25 -07:00