From: Ivan Maidanski Date: Fri, 1 Jul 2016 07:30:57 +0000 (+0300) Subject: Replace (fix) 'objs' acronym in comments with 'objects' word X-Git-Tag: v7.4.6~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfa67c2129be017ad2c226926a027e73a34cbf12;p=gc Replace (fix) 'objs' acronym in comments with 'objects' word * include/gc.h (GC_PROTECTS_POINTER_HEAP): Replace "objs" word to "objects" in comment. * include/private/gc_priv.h (GC_arrays._aobjfreelist, GC_arrays._uobjfreelist, GC_arrays._auobjfreelist, GC_aobjfreelist): Likewise. * mark.c (INITIAL_MARK_STACK_SIZE): Likewise. * include/private/gc_priv.h (GC_arrays._uobjfreelist): Add missing dot to delimit the end of a sentence in comment. --- diff --git a/include/gc.h b/include/gc.h index 98186726..b376a1be 100644 --- a/include/gc.h +++ b/include/gc.h @@ -720,7 +720,7 @@ GC_API void GC_CALL GC_enable_incremental(void); /* Does incremental mode write-protect pages? Returns zero or */ /* more of the following, or'ed together: */ -#define GC_PROTECTS_POINTER_HEAP 1 /* May protect non-atomic objs. */ +#define GC_PROTECTS_POINTER_HEAP 1 /* May protect non-atomic objects. */ #define GC_PROTECTS_PTRFREE_HEAP 2 #define GC_PROTECTS_STATIC_DATA 4 /* Currently never. */ #define GC_PROTECTS_STACK 8 /* Probably impractical. */ diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 93e0bd1d..380bbf3a 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -1151,17 +1151,17 @@ struct _GC_arrays { /* free list for objects */ # define GC_aobjfreelist GC_arrays._aobjfreelist void *_aobjfreelist[MAXOBJGRANULES+1]; - /* free list for atomic objs */ + /* free list for atomic objects */ # endif void *_uobjfreelist[MAXOBJGRANULES+1]; - /* Uncollectible but traced objs */ - /* objects on this and auobjfreelist */ + /* Uncollectible but traced objects. */ + /* Objects on this and _auobjfreelist */ /* are always marked, except during */ /* garbage collections. */ # ifdef ATOMIC_UNCOLLECTABLE # define GC_auobjfreelist GC_arrays._auobjfreelist void *_auobjfreelist[MAXOBJGRANULES+1]; - /* Atomic uncollectible but traced objs */ + /* Atomic uncollectible but traced objects. */ # endif word _composite_in_use; /* Number of bytes in the accessible */ /* composite objects. */ @@ -1361,7 +1361,7 @@ GC_EXTERN struct obj_kind { # define endGC_objfreelist (beginGC_objfreelist + sizeof(GC_objfreelist)) extern ptr_t GC_aobjfreelist[MAXOBJGRANULES+1]; - /* free list for atomic (PTRFREE) objs */ + /* free list for atomic (PTRFREE) objects */ # define beginGC_aobjfreelist ((ptr_t)(&GC_aobjfreelist)) # define endGC_aobjfreelist (beginGC_aobjfreelist + sizeof(GC_aobjfreelist)) #endif /* SEPARATE_GLOBALS */ diff --git a/mark.c b/mark.c index e23a7966..94919327 100644 --- a/mark.c +++ b/mark.c @@ -93,7 +93,7 @@ GC_INNER unsigned GC_n_kinds = GC_N_KINDS_INITIAL_VALUE; /* INITIAL_MARK_STACK_SIZE * sizeof(mse) should be a */ /* multiple of HBLKSIZE. */ /* The incremental collector actually likes a larger */ - /* size, since it want to push all marked dirty objs */ + /* size, since it want to push all marked dirty objects */ /* before marking anything new. Currently we let it */ /* grow dynamically. */ # endif