From: Ivan Maidanski Date: Wed, 29 Nov 2017 22:24:33 +0000 (+0300) Subject: Update comment in finalized_disclaim to match FINALIZER_CLOSURE_FLAG X-Git-Tag: v7.4.8~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=976e2f515d4d3043e878a8a6f197c6c6dc1399ea;p=gc 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). --- diff --git a/fnlz_mlc.c b/fnlz_mlc.c index ddda9c0e..33dcda13 100644 --- a/fnlz_mlc.c +++ b/fnlz_mlc.c @@ -41,7 +41,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 */