server-skynet-source-3rd-je.../test/unit
Qi Wang 9a86c65abc Implement retain on Windows.
The VirtualAlloc and VirtualFree APIs are different because MEM_DECOMMIT cannot
be used across multiple VirtualAlloc regions.  To properly support decommit,
only allow merge / split within the same region -- this is done by tracking the
"is_head" state of extents and not merging cross-region.

Add a new state is_head (only relevant for retain && !maps_coalesce), which is
true for the first extent in each VirtualAlloc region.  Determine if two extents
can be merged based on the head state, and use serial numbers for sanity checks.
2019-07-23 22:18:55 -07:00
..
a0.c Remove extraneous parens around return arguments. 2017-01-20 21:43:07 -08:00
arena_reset_prof.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
arena_reset_prof.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
arena_reset.c Implement retain on Windows. 2019-07-23 22:18:55 -07:00
atomic.c Remove the pre-C11-atomics API, which is now unused 2017-04-05 16:25:37 -07:00
background_thread_enable.c Fix the max_background_thread test. 2018-05-15 14:00:51 -07:00
background_thread.c Combine background_thread started / paused into state. 2017-06-12 08:56:14 -07:00
base.c Add stats for metadata_thp. 2017-08-30 16:47:32 -07:00
binshard.c Fix the binshard unit test. 2019-04-02 16:53:00 -07:00
binshard.sh Add unit test for sharded bins. 2018-12-03 17:17:03 -08:00
bit_util.c Add lg_ceil to bit_util. 2018-07-12 20:53:06 -07:00
bitmap.c Revert "Remove BITMAP_USE_TREE." 2017-04-18 19:01:04 -07:00
ckh.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
decay.c Eagerly purge oversized merged extents. 2019-03-14 17:34:55 -07:00
decay.sh Refactor *decay_time into *decay_ms. 2017-05-18 11:33:45 -07:00
div.c Add the div module, which allows fast division by dynamic values. 2017-12-21 14:25:43 -08:00
emitter.c Small refactoring of emitter 2018-08-01 13:27:11 -07:00
extent_quantize.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
extent_util.c Improve memory utilization tests 2019-05-21 12:57:06 -07:00
fork.c Add a test of behavior under multi-threaded forking. 2017-07-10 18:17:12 -07:00
hash.c Header refactoring: hash - unify and remove from catchall. 2017-04-25 09:51:38 -07:00
hook.c Hooks: Protect against reentrancy. 2018-05-18 11:43:03 -07:00
huge.c Rename huge_threshold to oversize_threshold. 2019-01-25 13:15:45 -08:00
junk_alloc.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk_alloc.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk_free.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk_free.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk.c SC: Remove global data. 2018-07-23 13:37:08 -07:00
junk.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
log.c Logging: capitalize log macro. 2017-10-02 20:44:43 -07:00
mallctl.c Add confirm_conf option 2019-05-22 09:38:39 -07:00
malloc_io.c Disentangle assert and util 2017-03-06 15:08:43 -08:00
math.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
mq.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
mtx.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
nstime.c Add background thread related stats. 2017-05-23 12:26:20 -07:00
pack.c Skip test/unit/pack when profiling is enabled. 2017-12-18 12:47:46 -08:00
pack.sh Refactor *decay_time into *decay_ms. 2017-05-18 11:33:45 -07:00
pages.c Add opt.thp which allows explicit hugepage usage. 2018-03-08 13:08:06 -08:00
ph.c Header refactoring: break out ph.h dependencies 2017-04-11 11:52:30 -07:00
prng.c Convert prng module to use C11-style atomics 2017-04-04 16:45:52 -07:00
prof_accum.c Add hooking functionality 2017-04-07 14:10:27 -07:00
prof_accum.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_active.c Add hooking functionality 2017-04-07 14:10:27 -07:00
prof_active.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_gdump.c SC: Remove global data. 2018-07-23 13:37:08 -07:00
prof_gdump.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_idump.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_idump.sh Remove --disable-tcache. 2017-04-21 10:06:12 -07:00
prof_log.c Fix test/unit/prof_log 2019-04-05 13:47:10 -07:00
prof_log.sh Add unit tests for logging 2018-08-01 13:27:11 -07:00
prof_reset.c Add hooking functionality 2017-04-07 14:10:27 -07:00
prof_reset.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_tctx.c Pass alloc_ctx down profiling path. 2017-04-12 13:55:39 -07:00
prof_tctx.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_thread_name.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_thread_name.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
ql.c Header refactoring: break out ql.h dependencies 2017-04-11 11:52:30 -07:00
qr.c Header refactoring: break out qr.h dependencies 2017-04-11 11:52:30 -07:00
rb.c Header refactoring: break out rb.h dependencies 2017-04-11 11:52:30 -07:00
retained.c Header refactoring: Pull size helpers out of jemalloc module. 2017-05-31 13:08:45 -07:00
rtree.c Implement retain on Windows. 2019-07-23 22:18:55 -07:00
safety_check.c Safety checks: Add a redzoning feature. 2019-04-15 16:48:12 -07:00
safety_check.sh Safety checks: Add a redzoning feature. 2019-04-15 16:48:12 -07:00
sc.c SC: Add page customization functionality. 2018-07-12 20:53:06 -07:00
seq.c Add the Seq module, a simple seqlock implementation. 2018-05-18 11:43:03 -07:00
SFMT.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
size_classes.c SC: Remove global data. 2018-07-23 13:37:08 -07:00
slab.c Implement retain on Windows. 2019-07-23 22:18:55 -07:00
smoothstep.c Cleanup smoothstep.sh / .h. 2017-05-25 16:52:10 -07:00
spin.c Header refactoring: unify and de-catchall rtree module. 2017-05-31 13:08:45 -07:00
stats_print.c Fix type warning on Windows. 2018-04-09 16:50:30 -07:00
stats.c Add nonfull_slabs to bin_stats_t. 2019-04-29 13:35:02 -07:00
test_hooks.c Rename hooks module to test_hooks. 2018-05-18 11:43:03 -07:00
ticker.c Header refactoring: ticker module - remove from the catchall and unify. 2017-04-24 10:33:21 -07:00
tsd.c TSD: Add the ability to enter a global slow path. 2018-05-18 11:43:03 -07:00
witness.c Header refactoring: unify and de-catchall witness code. 2017-05-24 15:27:30 -07:00
zero.c SC: Remove global data. 2018-07-23 13:37:08 -07:00
zero.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00