server-skynet-source-3rd-je.../test
David Goldblatt 3f685e8824 Protect the rtree/extent interactions with a mutex pool.
Instead of embedding a lock bit in rtree leaf elements, we associate extents
with a small set of mutexes.  This gets us two things:

- We can use the system mutexes.  This (hypothetically) protects us from
  priority inversion, and lets us stop doing a backoff/sleep loop, instead
  opting for precise wakeups from the mutex.
- Cuts down on the number of mutex acquisitions we have to do (from 4 in the
  worst case to two).

We end up simplifying most of the rtree code (which no longer has to deal with
locking or concurrency at all), at the cost of additional complexity in the
extent code: since the mutex protecting the rtree leaf elements is determined by
reading the extent out of those elements, the initial read is racy, so that we
may acquire an out of date mutex.  We re-check the extent in the leaf after
acquiring the mutex to protect us from this race.
2017-05-19 14:21:27 -07:00
..
include/test Add extent_destroy_t and use it during arena destruction. 2017-04-29 09:24:12 -07:00
integration Remove --disable-tcache. 2017-04-21 10:06:12 -07:00
src Get rid of most of the various inline macros. 2017-04-24 10:33:21 -07:00
stress Get rid of most of the various inline macros. 2017-04-24 10:33:21 -07:00
unit Protect the rtree/extent interactions with a mutex pool. 2017-05-19 14:21:27 -07:00
test.sh.in Output MALLOC_CONF and debug cmd when test failure happens. 2017-04-21 22:52:02 -07:00