Update comment in finalized_disclaim to match FINALIZER_CLOSURE_FLAG
authorIvan Maidanski <ivmai@mail.ru>
Wed, 29 Nov 2017 22:24:33 +0000 (01:24 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 29 Nov 2017 22:24:33 +0000 (01:24 +0300)
(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

index f08e536..16d40af 100644 (file)
@@ -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  */