From: Mathieu Desnoyers Date: Thu, 30 Jun 2011 14:45:33 +0000 (-0400) Subject: urcu tests: hold mutex across use of custom allocator X-Git-Tag: v0.6.4~4 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=d4267b0b37f1a7d35e23f0d7c045a973f6c3a6aa;hp=d4267b0b37f1a7d35e23f0d7c045a973f6c3a6aa;p=urcu.git urcu tests: hold mutex across use of custom allocator A thread preempted for a long period of time could race, when scheduled again, with another thread that would have been allocating/freeing entries (thus wrapping-around the available buffer), which would trigger this race only when overcommitting the number of threads compared to the number of available CPUs. Taking the mutex across alloc and free to fix this. Signed-off-by: Mathieu Desnoyers ---