summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-01-17 19:05:57 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-03-14 11:34:51 +0300
commit1265600857868e4eba211df63bd3a431fcd6b6d4 (patch)
treeb09714a6a3ecd5e236b4de637ee5b807a07836ca
parent7303c92c088627fde4669337df0b5d1031d031be (diff)
downloadbdwgc-1265600857868e4eba211df63bd3a431fcd6b6d4.tar.gz
Fix typos in comments and documentation (regarding 'it is')
(a cherry-pick of commit 25aa62fee from 'master') * ChangeLog (4.3): Fix typo ("it's"). * doc/platforms/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--ChangeLog2
-rw-r--r--doc/README.amiga2
-rw-r--r--extra/AmigaOS.c2
-rw-r--r--malloc.c2
-rw-r--r--new_hblk.c2
-rw-r--r--os_dep.c2
-rw-r--r--reclaim.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index a2bb3c4b..09462c48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9920,7 +9920,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 65ade9a0..45d25aaa 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 d8311eed..beedb025 100644
--- a/extra/AmigaOS.c
+++ b/extra/AmigaOS.c
@@ -356,7 +356,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;
- 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);
diff --git a/malloc.c b/malloc.c
index f21d11c2..5b437912 100644
--- a/malloc.c
+++ b/malloc.c
@@ -595,7 +595,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 && EXPECT(sz > sizeof(word), TRUE)) {
diff --git a/new_hblk.c b/new_hblk.c
index 88de14dd..4d6d874b 100644
--- a/new_hblk.c
+++ b/new_hblk.c
@@ -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. */
diff --git a/os_dep.c b/os_dep.c
index 3e9bbe19..eb99ab24 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -1990,7 +1990,7 @@ void GC_register_data_segments(void)
# endif
#ifdef DATASTART_USES_BSDGETDATASTART
-/* 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. */
diff --git a/reclaim.c b/reclaim.c
index 9ada9d1d..72244d80 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -673,7 +673,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 *));
}