]> granicus.if.org Git - gc/commitdiff
Fix typos in documentation (regarding 'non-incremental')
authorIvan Maidanski <ivmai@mail.ru>
Thu, 4 Apr 2019 21:47:37 +0000 (00:47 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 5 Apr 2019 19:10:35 +0000 (22:10 +0300)
* doc/gcdescr.md (Introduction): Fix typos ("non-incremental",
"this operation").
* mark.c (GC_collection_in_progress): Fix a typo in comment
("non-incremental").

doc/gcdescr.md
mark.c

index a08a805aa26b31477f6fd700e20a65b0ad36476b..cc2354529fe5a584e80be589f44e5fc4d3d383b8 100644 (file)
@@ -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 ade6f533c39052ee6a239ce4cf0ed382f44e0c87..c92713e2f7f65e4a9726b1485ed2209c5426afe4 100644 (file)
--- 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)
 {