From: Ivan Maidanski Date: Thu, 4 Apr 2019 21:47:37 +0000 (+0300) Subject: Fix typos in documentation (regarding 'non-incremental') X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ddeb9cd;p=gc Fix typos in documentation (regarding 'non-incremental') * doc/gcdescr.md (Introduction): Fix typos ("non-incremental", "this operation"). * mark.c (GC_collection_in_progress): Fix a typo in comment ("non-incremental"). --- diff --git a/doc/gcdescr.md b/doc/gcdescr.md index a08a805a..cc235452 100644 --- a/doc/gcdescr.md +++ b/doc/gcdescr.md @@ -36,7 +36,7 @@ of a memory allocation: to be reachable from variables are again scanned similarly. 3. _Sweep phase_ Scans the heap for inaccessible, and hence unmarked, objects, and returns them to an appropriate free list for reuse. This is not - really a separate phase; even in non incremental mode this is operation + really a separate phase; even in non-incremental mode this operation is usually performed on demand during an allocation that discovers an empty free list. Thus the sweep phase is very unlikely to touch a page that would not have been touched shortly thereafter anyway. diff --git a/mark.c b/mark.c index ade6f533..c92713e2 100644 --- a/mark.c +++ b/mark.c @@ -123,7 +123,7 @@ STATIC GC_bool GC_objects_are_marked = FALSE; /* Are there collectible marked objects in the heap? */ /* Is a collection in progress? Note that this can return true in the */ -/* nonincremental case, if a collection has been abandoned and the */ +/* non-incremental case, if a collection has been abandoned and the */ /* mark state is now MS_INVALID. */ GC_INNER GC_bool GC_collection_in_progress(void) {