]> granicus.if.org Git - gc/commit
Make disclaim_bench.c more portable.
authorPetter Urkedal <paurkedal@gmail.com>
Wed, 28 Sep 2011 19:13:02 +0000 (21:13 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 30 Sep 2011 13:35:44 +0000 (17:35 +0400)
commitc8e9db95289bb934fc2c0a06048af92af0184224
tree6fdd01ff3552aea33506357cdc8bb56d642b945f
parent51561b5b4eb68d2d222ede7210b3a26809d97b9a
Make disclaim_bench.c more portable.

* tests/disclaim_bench.c (main): Run all three sub-tests in the same
process, rather than invoking them through a system-call.
* tests/disclaim_bench.c (free_count, testobj_finalize): Drop the use of
atomic ops, since the benchmark is single-threaded.  We can now also run
the test unconditionally.
tests/disclaim_bench.c