zephyr/tests/kernel/mem_slab/mslab_threadsafe
Andy Ross 2d03b55293 tests/kernel/mem_slab: Fix memory overcommit for real
Commit 4ef36a4b54 ("tests/kernel/mem_slab: Fix memory overcommit")
caught this error, but missed the fact that there are two slabs that
need to be resized.  I also failed to properly explain (or, to be
honestly, fully understand) the deadlock condition, so add a nice big
comment explaining it.

Basically: you have a bunch of threads that can allocate all but one
of their blocks before trying to allocate their last one and pending.
There must be at least one block left so all the threads don't
symmetrically go to sleep waiting on each other.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-06-02 16:24:47 -04:00
..
src tests/kernel/mem_slab: Fix memory overcommit for real 2018-06-02 16:24:47 -04:00
CMakeLists.txt Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
prj.conf tests: rename test directory for mem_slab 2017-06-19 09:01:14 -04:00
testcase.yaml tests: kernel: stop relying on path for naming 2018-02-18 09:16:40 -05:00