server-skynet-source-3rd-je.../test/include/test
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
..
btalloc.h Refactor permuted backtrace test allocation. 2014-10-01 22:28:23 -07:00
jemalloc_test_defs.h.in Don't configure HAVE_SSE2. 2014-10-08 18:18:03 -07:00
jemalloc_test.h.in jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
math.h Style and spelling fixes. 2014-12-08 16:34:04 -08:00
mq.h Port mq_get() to MinGW. 2015-07-21 16:45:35 -07:00
mtx.h Add os_unfair_lock support. 2016-11-02 18:09:45 -07:00
SFMT-alti.h Remove duplicate 'static' keyword. 2014-02-26 10:19:18 -08:00
SFMT-params607.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params1279.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params2281.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params4253.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params11213.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params19937.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params44497.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params86243.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params132049.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params216091.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-params.h Integrate SFMT 1.3.3 into test infrastructure. 2013-12-09 13:21:08 -08:00
SFMT-sse2.h Fix inline-related macro issues. 2013-12-10 14:35:34 -08:00
SFMT.h Fix inline-related macro issues. 2013-12-10 14:35:34 -08:00
test.h jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
thd.h Style and spelling fixes. 2014-12-08 16:34:04 -08:00
timer.h Fix Windows build issues 2016-02-23 18:55:45 -08:00