server-skynet-source-3rd-je.../include/jemalloc
Jason Evans d419bb09ef Fix and simplify decay-based purging.
Simplify decay-based purging attempts to only be triggered when the
epoch is advanced, rather than every time purgeable memory increases.
In a correctly functioning system (not previously the case; see below),
this only causes a behavior difference if during subsequent purge
attempts the least recently used (LRU) purgeable memory extent is
initially too large to be purged, but that memory is reused between
attempts and one or more of the next LRU purgeable memory extents are
small enough to be purged.  In practice this is an arbitrary behavior
change that is within the set of acceptable behaviors.

As for the purging fix, assure that arena->decay.ndirty is recorded
*after* the epoch advance and associated purging occurs.  Prior to this
fix, it was possible for purging during epoch advance to cause a
substantially underrepresentative (arena->ndirty - arena->decay.ndirty),
i.e. the number of dirty pages attributed to the current epoch was too
low, and a series of unintended purges could result.  This fix is also
relevant in the context of the simplification described above, but the
bug's impact would be limited to over-purging at epoch advances.
2016-10-11 15:50:05 -07:00
..
internal Fix and simplify decay-based purging. 2016-10-11 15:50:05 -07:00
jemalloc_defs.h.in Detect LG_SIZEOF_PTR depending on MSVC platform target 2016-02-20 10:50:24 -08:00
jemalloc_macros.h.in Add (size_t) casts to MALLOCX_ALIGN(). 2016-03-11 10:11:56 -08:00
jemalloc_mangle.sh Fix name mangling for stress tests. 2014-01-16 17:38:01 -08:00
jemalloc_protos.h.in Add JEMALLOC_CXX_THROW to the memalign() function prototype. 2015-08-26 13:47:20 -07:00
jemalloc_rename.sh Fix name mangling for stress tests. 2014-01-16 17:38:01 -08:00
jemalloc_typedefs.h.in Implement chunk hook support for page run commit/decommit. 2015-08-07 00:50:58 -07:00
jemalloc.sh Remove extraneous ';' on closing 'extern "C"' 2015-07-16 11:37:19 +01:00