From: Ivan Maidanski Date: Tue, 15 Nov 2016 21:41:33 +0000 (+0300) Subject: Fix register_finalizer call in disclaim_bench for GC_DEBUG X-Git-Tag: v7.6.2~324 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=670454b26fadacf1b1b97c5e7ffc6378914b7395;p=gc Fix register_finalizer call in disclaim_bench for GC_DEBUG * tests/disclaim_bench.c (testobj_new): Call GC_REGISTER_FINALIZER_NO_ORDER instead of GC_register_finalizer_no_order. --- diff --git a/tests/disclaim_bench.c b/tests/disclaim_bench.c index 5e70cbbe..298bac68 100644 --- a/tests/disclaim_bench.c +++ b/tests/disclaim_bench.c @@ -59,7 +59,7 @@ testobj_t testobj_new(int model) case 0: obj = GC_MALLOC(sizeof(struct testobj_s)); if (obj != NULL) - GC_register_finalizer_no_order(obj, testobj_finalize, + GC_REGISTER_FINALIZER_NO_ORDER(obj, testobj_finalize, &free_count, NULL, NULL); break; case 1: