server-skynet-source-3rd-je.../include/jemalloc/internal
Jason Evans 86abd0dcd8 Refactor to support more varied testing.
Refactor the test harness to support three types of tests:
- unit: White box unit tests.  These tests have full access to all
  internal jemalloc library symbols.  Though in actuality all symbols
  are prefixed by jet_, macro-based name mangling abstracts this away
  from test code.
- integration: Black box integration tests.  These tests link with
  the installable shared jemalloc library, and with the exception of
  some utility code and configure-generated macro definitions, they have
  no access to jemalloc internals.
- stress: Black box stress tests.  These tests link with the installable
  shared jemalloc library, as well as with an internal allocator with
  symbols prefixed by jet_ (same as for unit tests) that can be used to
  allocate data structures that are internal to the test code.

Move existing tests into test/{unit,integration}/ as appropriate.

Split out internal parts of jemalloc_defs.h.in and put them in
jemalloc_internal_defs.h.in.  This reduces internals exposure to
applications that #include <jemalloc/jemalloc.h>.

Refactor jemalloc.h header generation so that a single header file
results, and the prototypes can be used to generate jet_ prototypes for
tests.  Split jemalloc.h.in into multiple parts (jemalloc_defs.h.in,
jemalloc_macros.h.in, jemalloc_protos.h.in, jemalloc_mangle.h.in) and
use a shell script to generate a unified jemalloc.h at configure time.

Change the default private namespace prefix from "" to "je_".

Add missing private namespace mangling.

Remove hard-coded private_namespace.h.  Instead generate it and
private_unnamespace.h from private_symbols.txt.  Use similar logic for
public symbols, which aids in name mangling for jet_ symbols.

Add test_warn() and test_fail().  Replace existing exit(1) calls with
test_fail() calls.
2013-12-03 22:06:59 -08:00
..
arena.h Remove unnecessary zeroing in arena_palloc(). 2013-10-29 18:31:17 -07:00
atomic.h Add support for MSVC 2012-05-01 11:32:11 -07:00
base.h Fix fork-related bugs. 2012-03-13 16:31:41 -07:00
bitmap.h Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
chunk_dss.h Add arena-specific and selective dss allocation. 2012-10-12 18:26:16 -07:00
chunk_mmap.h Fix mlockall()/madvise() interaction. 2012-10-08 18:04:49 -07:00
chunk.h Add arena-specific and selective dss allocation. 2012-10-12 18:26:16 -07:00
ckh.h Update hash from MurmurHash2 to MurmurHash3. 2013-01-22 12:02:08 -08:00
ctl.h Add arena-specific and selective dss allocation. 2012-10-12 18:26:16 -07:00
extent.h Fix mlockall()/madvise() interaction. 2012-10-08 18:04:49 -07:00
hash.h Update hash from MurmurHash2 to MurmurHash3. 2013-01-22 12:02:08 -08:00
huge.h Add arena-specific and selective dss allocation. 2012-10-12 18:26:16 -07:00
jemalloc_internal_defs.h.in Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00
jemalloc_internal.h.in Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00
mb.h Simplify small size class infrastructure. 2012-02-28 16:50:47 -08:00
mutex.h Add support for Mingw 2012-04-21 21:27:46 -07:00
private_namespace.sh Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00
private_symbols.txt Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00
private_unnamespace.sh Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00
prng.h Rename prn to prng. 2012-03-02 15:59:45 -08:00
prof.h Fix potential TLS-related memory corruption. 2013-01-31 14:23:48 -08:00
public_namespace.sh Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00
public_symbols.txt Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00
public_unnamespace.sh Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00
ql.h Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
qr.h Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
quarantine.h Fix potential TLS-related memory corruption. 2013-01-31 14:23:48 -08:00
rb.h Clean up rb documentation. 2011-11-01 20:48:31 -07:00
rtree.h Fix fork(2)-related deadlocks. 2012-10-09 15:21:46 -07:00
size_classes.sh Use echo instead of cat in loops in size_classes.sh 2012-04-16 22:45:09 -07:00
stats.h Implement malloc_vsnprintf(). 2012-03-07 16:19:19 -08:00
tcache.h Fix a Valgrind integration flaw. 2013-10-19 23:48:40 -07:00
tsd.h Add support for LinuxThreads. 2013-10-24 18:25:19 -07:00
util.h Refactor to support more varied testing. 2013-12-03 22:06:59 -08:00