Go to file
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
bin jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
build-aux Update config.{guess,sub} from upstream. 2016-11-10 15:02:05 -08:00
doc Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *). 2016-11-15 15:01:03 -08:00
include jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
m4 jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
msvc Fixes to Visual Studio Project files 2016-11-04 09:59:05 -07:00
src jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
test jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
.appveyor.yml Add an AppVeyor config 2016-06-09 21:06:22 +09:00
.autom4te.cfg Disable autom4te cache. 2014-09-02 17:49:29 -07:00
.gitattributes fix git handling of newlines on windows 2014-05-07 18:48:39 -04:00
.gitignore jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
.travis.yml Add Travis-CI configuration 2016-07-07 13:16:05 -07:00
autogen.sh Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
ChangeLog Update ChangeLog for 4.4.0. 2016-12-03 18:35:23 -08:00
config.stamp.in Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
configure.ac jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
COPYING Update copyright dates for 2016. 2016-02-28 15:20:40 -08:00
coverage.sh Add test code coverage analysis. 2013-12-06 18:50:51 -08:00
INSTALL jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
jemalloc.pc.in Update project URL. 2016-09-12 11:56:24 -07:00
Makefile.in jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
README Update project URL. 2016-09-12 11:56:24 -07:00

jemalloc is a general purpose malloc(3) implementation that emphasizes
fragmentation avoidance and scalable concurrency support.  jemalloc first came
into use as the FreeBSD libc allocator in 2005, and since then it has found its
way into numerous applications that rely on its predictable behavior.  In 2010
jemalloc development efforts broadened to include developer support features
such as heap profiling and extensive monitoring/tuning hooks.  Modern jemalloc
releases continue to be integrated back into FreeBSD, and therefore versatility
remains critical.  Ongoing development efforts trend toward making jemalloc
among the best allocators for a broad range of demanding applications, and
eliminating/mitigating weaknesses that have practical repercussions for real
world applications.

The COPYING file contains copyright and licensing information.

The INSTALL file contains information on how to configure, build, and install
jemalloc.

The ChangeLog file contains a brief summary of changes for each release.

URL: http://jemalloc.net/