ovs-thread: Break recursion for coverage counters.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 11 Dec 2013 23:55:03 +0000 (15:55 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 13 Dec 2013 18:57:19 +0000 (10:57 -0800)
commit0b554f5d5a37754060b24f4e31748addf9a3baf1
tree5d318940c01ba480906ce892664e8e9790dca218
parentc95e27834255c7b0bac54a5c707ab01103b37280
ovs-thread: Break recursion for coverage counters.

For systems that do not have either HAVE_THREAD_LOCAL or
HAVE___THREAD (ex: windows using MSVC), a COVERAGE_INC() calls xmalloc
which inturn calls COVERAGE_INC() creating a recursion that causes a
stack overflow.

This commit breaks the recursion by calling malloc() instead of
xmalloc().

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ovs-thread.h