From cd22c80e4d426c6d20036b0395e9128dd30de6d4 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 30 Nov 2017 01:24:33 +0300 Subject: [PATCH] Update comment in finalized_disclaim to match FINALIZER_CLOSURE_FLAG (fix commit 012da3f) * fnlz_mlc.c [ENABLE_DISCLAIM] (GC_finalized_disclaim): Update/refine comment (about the lowest 2 bits of the first word). --- fnlz_mlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fnlz_mlc.c b/fnlz_mlc.c index f08e5360..16d40af7 100644 --- a/fnlz_mlc.c +++ b/fnlz_mlc.c @@ -36,7 +36,7 @@ STATIC int GC_CALLBACK GC_finalized_disclaim(void *obj) /* The disclaim function may be passed fragments from the */ /* free-list, on which it should not run finalization. */ /* To recognize this case, we use the fact that the first word */ - /* on such fragments are always even (a link to the next */ + /* on such fragments is always multiple of 4 (a link to the next */ /* fragment, or NULL). If it is desirable to have a finalizer */ /* which does not use the first word for storing finalization */ /* info, GC_reclaim_with_finalization must be extended to clear */ -- 2.40.0