summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBrian Wignall <brianwignall@gmail.com>2019-11-29 14:25:14 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-02 03:44:16 -0500
commit717f323609857a40fdbefe7a5ba426747512414a (patch)
treedaa6c5cb93d35ac3b13e02f72484e87ca6e4aa3f /rts
parent18baed641fccc7fd91988334544d47505b577810 (diff)
downloadhaskell-717f323609857a40fdbefe7a5ba426747512414a.tar.gz
Fix more typos
Diffstat (limited to 'rts')
-rw-r--r--rts/linker/M32Alloc.c2
-rw-r--r--rts/posix/OSMem.c2
-rw-r--r--rts/sm/GC.c2
-rw-r--r--rts/sm/NonMoving.c2
-rw-r--r--rts/sm/Storage.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/rts/linker/M32Alloc.c b/rts/linker/M32Alloc.c
index dbba711df4..148a5043cf 100644
--- a/rts/linker/M32Alloc.c
+++ b/rts/linker/M32Alloc.c
@@ -96,7 +96,7 @@ life-cycle it is in:
allocation)
Allocation (in the case of a small request) consists of walking the nursery to
-find a page that will accomodate the request. If none exists then we allocate a
+find a page that will accommodate the request. If none exists then we allocate a
new nursery page (flushing an existing one to the filled list if the nursery is
full).
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index 15f1b62dc9..8e797681c9 100644
--- a/rts/posix/OSMem.c
+++ b/rts/posix/OSMem.c
@@ -183,7 +183,7 @@ my_mmap (void *addr, W_ size, int operation)
#if defined(darwin_HOST_OS)
// Without MAP_FIXED, Apple's mmap ignores addr.
- // With MAP_FIXED, it overwrites already mapped regions, whic
+ // With MAP_FIXED, it overwrites already mapped regions, which
// mmap(0, ... MAP_FIXED ...) is worst of all: It unmaps the program text
// and replaces it with zeroes, causing instant death.
// This behaviour seems to be conformant with IEEE Std 1003.1-2001.
diff --git a/rts/sm/GC.c b/rts/sm/GC.c
index 83e9c97bd9..a560c2c8fd 100644
--- a/rts/sm/GC.c
+++ b/rts/sm/GC.c
@@ -743,7 +743,7 @@ GarbageCollect (uint32_t collect_gen,
// oldest_gen->scavenged_large_objects back to oldest_gen->large_objects.
ASSERT(oldest_gen->scavenged_large_objects == NULL);
if (RtsFlags.GcFlags.useNonmoving && major_gc) {
- // All threads in non-moving heap should be found to be alive, becuase
+ // All threads in non-moving heap should be found to be alive, because
// threads in the non-moving generation's list should live in the
// non-moving heap, and we consider non-moving objects alive during
// preparation.
diff --git a/rts/sm/NonMoving.c b/rts/sm/NonMoving.c
index d13989cc53..5cb7c8b7e5 100644
--- a/rts/sm/NonMoving.c
+++ b/rts/sm/NonMoving.c
@@ -200,7 +200,7 @@ Mutex concurrent_coll_finished_lock;
* generation.
*
* - Note [Aging under the non-moving collector] (NonMoving.c) describes how
- * we accomodate aging
+ * we accommodate aging
*
* - Note [Large objects in the non-moving collector] (NonMovingMark.c)
* describes how we track large objects.
diff --git a/rts/sm/Storage.c b/rts/sm/Storage.c
index f04b3c5929..cdae368150 100644
--- a/rts/sm/Storage.c
+++ b/rts/sm/Storage.c
@@ -406,7 +406,7 @@ freeStorage (bool free_heap)
but can assume only two bits are available in STATIC_LINK (due to 32-bit
systems).
- To accomodate this we move handling of static objects entirely to the
+ To accommodate this we move handling of static objects entirely to the
oldest generation when the nonmoving collector is in use. To do this safely
and efficiently we allocate the blackhole created by lockCAF() directly in
the non-moving heap. This means that the moving collector can completely