]> 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)
committerPetter Urkedal <paurkedal@gmail.com>
Wed, 28 Sep 2011 19:13:02 +0000 (21:13 +0200)
commit68e67410fa41dc63d0c4de1d16eda655e0f7e003
treed34125809f2162866438c62c6239ae4efaf53ef4
parentee7c8bb588bcd51f2971aefa3b4c84b836a46755
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