Go to file
Jason Evans d27f29b468 Disentangle arena and extent locking.
Refactor arena and extent locking protocols such that arena and
extent locks are never held when calling into the extent_*_wrapper()
API.  This requires extra care during purging since the arena lock no
longer protects the inner purging logic.  It also requires extra care to
protect extents from being merged with adjacent extents.

Convert extent_t's 'active' flag to an enumerated 'state', so that
retained extents are explicitly marked as such, rather than depending on
ring linkage state.

Refactor the extent collections (and their synchronization) for cached
and retained extents into extents_t.  Incorporate LRU functionality to
support purging.  Incorporate page count accounting, which replaces
arena->ndirty and arena->stats.retained.

Assert that no core locks are held when entering any internal
[de]allocation functions.  This is in addition to existing assertions
that no locks are held when entering external [de]allocation functions.

Audit and document synchronization protocols for all arena_t fields.

This fixes a potential deadlock due to recursive allocation during
gdump, in a similar fashion to b49c649bc1
(Fix lock order reversal during gdump.), but with a necessarily much
broader code impact.
2017-02-01 16:43:46 -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 Implement arena.<i>.destroy . 2017-01-06 18:58:46 -08:00
include Disentangle arena and extent locking. 2017-02-01 16:43:46 -08:00
m4 jemalloc cpp new/delete bindings 2016-12-12 18:36:06 -08:00
msvc Update brace style. 2017-01-20 21:43:07 -08:00
scripts Introduce scripts to run all possible tests 2017-01-30 17:51:57 -08:00
src Disentangle arena and extent locking. 2017-02-01 16:43:46 -08:00
test Disentangle arena and extent locking. 2017-02-01 16:43:46 -08:00
.appveyor.yml CI: Run --enable-debug builds on windows 2017-01-31 17:23:30 -08: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 Beef up travis CI integration testing 2017-01-26 21:31:21 -08: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 Remove extraneous parens around return arguments. 2017-01-20 21:43:07 -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 Add huge page configuration and pages_[no}huge(). 2016-12-26 17:59:34 -08:00
jemalloc.pc.in Update project URL. 2016-09-12 11:56:24 -07:00
Makefile.in Test JSON output of malloc_stats_print() and fix bugs. 2017-01-19 14:05:00 -08:00
README Update project URL. 2016-09-12 11:56:24 -07:00
run_tests.sh Introduce scripts to run all possible tests 2017-01-30 17:51:57 -08: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/