zephyr/tests/kernel/mem_slab
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
..
mslab tests: kernel: Add description for test cases 2018-05-21 11:23:09 -04:00
mslab_api doc: fix misspellings in test documentation 2018-05-23 15:27:19 -05:00
mslab_concept tests: kernel: Add description for test cases 2018-05-21 11:23:09 -04:00
mslab_threadsafe tests/kernel/mem_slab: Fix memory overcommit for real 2018-06-02 16:24:47 -04:00