[BACK]Return to gc_copy_descr.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gc / include

Annotation of OpenXM_contrib/gc/include/gc_copy_descr.h, Revision 1.1.1.1

1.1       maekawa     1:
                      2: /*
                      3:  * Copyright (c) 1999 by Silicon Graphics.  All rights reserved.
                      4:  *
                      5:  * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
                      6:  * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
                      7:  *
                      8:  * Permission is hereby granted to use or copy this program
                      9:  * for any purpose,  provided the above notices are retained on all copies.
                     10:  * Permission to modify the code and to distribute modified code is granted,
                     11:  * provided the above notices are retained, and a notice that the code was
                     12:  * modified is included with the above copyright notice.
                     13:  */
                     14: /* Descriptor for allocation request. May be redefined by client. */
                     15: typedef struct {
                     16:     GC_word bitmap;    /* Bitmap describing pointer locations. */
                     17:                        /* High order bit correspond to 0th     */
                     18:                        /* word.  2 lsbs must be 0.             */
                     19:     size_t length;      /* In bytes, must be multiple of word  */
                     20:                        /* size.  Must be >0, <= 512            */
                     21: } * GC_copy_descriptor;
                     22:
                     23: /* The collector accesses descriptors only through these two macros. */
                     24: #define GC_SIZE_FROM_DESCRIPTOR(d) ((d) -> length)
                     25: #define GC_BIT_MAP_FROM_DESCRIPTOR(d) ((d) -> bitmap)
                     26:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>