From: Ivan Maidanski Date: Tue, 6 Nov 2012 03:13:29 +0000 (+0400) Subject: Fix unit in comment for some counters in gc_priv.h X-Git-Tag: gc7_4_0~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ad245eff98f81e4d887afdb534c8683ac33126e;p=gc Fix unit in comment for some counters in gc_priv.h * include/private/gc_priv.h (_GC_arrays): Fix comment for _bytes_allocd_before_gc, _bytes_allocd, _composite_in_use and _atomic_in_use fields (replace "words" unit with "bytes"). * include/private/gc_priv.h (GC_objfreelist): Fix comment (replace "words" unit with "bytes"). --- diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 3032582c..0f6d5148 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -1072,12 +1072,12 @@ struct _GC_arrays { /* large object blocks. This is used to help decide when it */ /* is safe to split up a large block. */ word _bytes_allocd_before_gc; - /* Number of words allocated before this */ + /* Number of bytes allocated before this */ /* collection cycle. */ # ifndef SEPARATE_GLOBALS # define GC_bytes_allocd GC_arrays._bytes_allocd word _bytes_allocd; - /* Number of words allocated during this collection cycle. */ + /* Number of bytes allocated during this collection cycle. */ # endif word _bytes_dropped; /* Number of black-listed bytes dropped during GC cycle */ @@ -1121,9 +1121,9 @@ struct _GC_arrays { void *_auobjfreelist[MAXOBJGRANULES+1]; /* Atomic uncollectable but traced objs */ # endif - word _composite_in_use; /* Number of words in accessible */ + word _composite_in_use; /* Number of bytes in the accessible */ /* composite objects. */ - word _atomic_in_use; /* Number of words in accessible */ + word _atomic_in_use; /* Number of bytes in the accessible */ /* atomic objects. */ # ifdef USE_MUNMAP # define GC_unmapped_bytes GC_arrays._unmapped_bytes @@ -1309,7 +1309,7 @@ GC_EXTERN struct obj_kind { #ifdef SEPARATE_GLOBALS extern word GC_bytes_allocd; - /* Number of words allocated during this collection cycle */ + /* Number of bytes allocated during this collection cycle. */ extern ptr_t GC_objfreelist[MAXOBJGRANULES+1]; /* free list for NORMAL objects */ # define beginGC_objfreelist ((ptr_t)(&GC_objfreelist))