diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-01-17 19:05:57 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-03-14 16:29:35 +0300 |
commit | 9c4f56603b3b2bc2f0e366de287f4e302e1502b6 (patch) | |
tree | 230ae64582abbbc518d7c3a91f42edd0990e6984 | |
parent | bb9121184242ffd34a96abef822aee9b6021f4a0 (diff) | |
download | bdwgc-9c4f56603b3b2bc2f0e366de287f4e302e1502b6.tar.gz |
Fix typos in comments and documentation (regarding 'it is')
(a cherry-pick of commit 7ce5cbf27 from 'release-7_6')
* ChangeLog (4.3): Fix typo ("it's").
* doc/README.amiga (GC_AMIGA_GC): Likewise.
* extra/AmigaOS.c (GC_amiga_allocwrapper_any): Fix typo in comment
("it's").
* malloc.c (GC_free): Likewise.
* new_hblk.c (GC_build_fl): Likewise.
* os_dep.c [DATASTART_USES_BSDGETDATASTART] (GC_FreeBSDGetDataStart):
Likewise.
* reclaim.c (GC_start_reclaim): Likewise.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | doc/README.amiga | 2 | ||||
-rw-r--r-- | extra/AmigaOS.c | 2 | ||||
-rw-r--r-- | malloc.c | 2 | ||||
-rw-r--r-- | new_hblk.c | 2 | ||||
-rw-r--r-- | os_dep.c | 2 | ||||
-rw-r--r-- | reclaim.c | 2 |
7 files changed, 7 insertions, 7 deletions
@@ -8846,7 +8846,7 @@ being collected or finalized. the change in the definition of accessibility (by John Ellis). * Added support for operator new[] (by John Ellis). Since most compilers don't yet support operator new[], it is conditionalized on --DOPERATOR_NEW_ARRAY. The code is untested, but its trivial and looks +-DOPERATOR_NEW_ARRAY. The code is untested, but it's trivial and looks correct. * The test program test_gc_c++ (later renamed test_cpp.cc) tries to test for the C++-specific functionality not tested by the diff --git a/doc/README.amiga b/doc/README.amiga index da59a0a0..7e5c065e 100644 --- a/doc/README.amiga +++ b/doc/README.amiga @@ -49,7 +49,7 @@ WHATS NEW: GC from returning chip-mem. Beware that it slows down a lot when a program is rapidly allocating/deallocating when there's either very little fast-memory left or very little - chip-memory left. Its not a very common situation, but gctest + chip-memory left. It's not a very common situation, but gctest sometimes (very rare) use many minutes because of this. GC_AMIGA_RETRY - If gc succeed allocating memory, but it is chip-mem, diff --git a/extra/AmigaOS.c b/extra/AmigaOS.c index 5a916e3a..86645312 100644 --- a/extra/AmigaOS.c +++ b/extra/AmigaOS.c @@ -435,7 +435,7 @@ void *GC_amiga_rec_alloc(size_t size,void *(*AllocFunction)(size_t size2),const void *GC_amiga_allocwrapper_any(size_t size,void *(*AllocFunction)(size_t size2)){ void *ret,*ret2; - GC_amiga_dontalloc=TRUE; /* Pretty tough thing to do, but its indeed necessary. */ + GC_amiga_dontalloc=TRUE; /* Pretty tough thing to do, but it's indeed necessary. */ latestsize=size; ret=(*AllocFunction)(size); @@ -512,7 +512,7 @@ GC_API void GC_CALL GC_free(void * p) LOCK(); GC_bytes_freed += sz; if (IS_UNCOLLECTABLE(knd)) GC_non_gc_bytes -= sz; - /* Its unnecessary to clear the mark bit. If the */ + /* It's unnecessary to clear the mark bit. If the */ /* object is reallocated, it doesn't matter. O.w. the */ /* collector will do it, since it's on a free list. */ if (ok -> ok_init) { @@ -112,7 +112,7 @@ GC_INNER ptr_t GC_build_fl(struct hblk *h, size_t sz, GC_bool clear, word *p, *prev; word *last_object; /* points to last object in new hblk */ - /* Do a few prefetches here, just because its cheap. */ + /* Do a few prefetches here, just because it's cheap. */ /* If we were more serious about it, these should go inside */ /* the loops. But write prefetches usually don't seem to */ /* matter much. */ @@ -1864,7 +1864,7 @@ void GC_register_data_segments(void) # if defined(FREEBSD) && !defined(PCR) && (defined(I386) || defined(X86_64) \ || defined(powerpc) || defined(__powerpc__)) -/* Its unclear whether this should be identical to the above, or */ +/* It's unclear whether this should be identical to the above, or */ /* whether it should apply to non-X86 architectures. */ /* For now we don't assume that there is always an empty page after */ /* etext. But in some cases there actually seems to be slightly more. */ @@ -638,7 +638,7 @@ GC_INNER void GC_start_reclaim(GC_bool report_if_found) } } } /* otherwise free list objects are marked, */ - /* and its safe to leave them */ + /* and it's safe to leave them. */ BZERO(rlist, (MAXOBJGRANULES + 1) * sizeof(void *)); } |