urcu tests: hold mutex across use of custom allocator
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 Jun 2011 14:45:33 +0000 (10:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 Jun 2011 14:45:33 +0000 (10:45 -0400)
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 <mathieu.desnoyers@efficios.com>

No differences found
This page took 0.026138 seconds and 4 git commands to generate.