server-skynet-source-3rd-je.../test
Jason Evans 8d0e04d42f Refactor rtree to be lock-free.
Recent huge allocation refactoring associates huge allocations with
arenas, but it remains necessary to quickly look up huge allocation
metadata during reallocation/deallocation.  A global radix tree remains
a good solution to this problem, but locking would have become the
primary bottleneck after (upcoming) migration of chunk management from
global to per arena data structures.

This lock-free implementation uses double-checked reads to traverse the
tree, so that in the steady state, each read or write requires only a
single atomic operation.

This implementation also assures that no more than two tree levels
actually exist, through a combination of careful virtual memory
allocation which makes large sparse nodes cheap, and skipping the root
node on x64 (possible because the top 16 bits are all 0 in practice).
2015-02-04 16:51:53 -08:00
..
include/test Style and spelling fixes. 2014-12-08 16:34:04 -08:00
integration Attempt to expand huge allocations in-place. 2014-10-05 14:47:01 -07:00
src Refactor permuted backtrace test allocation. 2014-10-01 22:28:23 -07:00
stress Thwart compiler optimizations. 2014-10-15 14:49:14 -07:00
unit Refactor rtree to be lock-free. 2015-02-04 16:51:53 -08:00
test.sh.in Streamline test output. 2013-12-12 14:58:26 -08:00