]> granicus.if.org Git - gc/commitdiff
Fix register_finalizer call in disclaim_bench for GC_DEBUG
authorIvan Maidanski <ivmai@mail.ru>
Tue, 15 Nov 2016 21:41:33 +0000 (00:41 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 27 Nov 2016 08:55:30 +0000 (11:55 +0300)
* tests/disclaim_bench.c (testobj_new): Call
GC_REGISTER_FINALIZER_NO_ORDER instead of GC_register_finalizer_no_order.

tests/disclaim_bench.c

index 0d418131accc60587ca0f95c0808a5ec180005f3..a2fc397276a0a435f99d99460e2037ce8cd7e70d 100644 (file)
@@ -53,7 +53,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: