summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBrian Wignall <brianwignall@gmail.com>2019-11-08 16:21:03 -0500
committerBrian Wignall <brianwignall@gmail.com>2019-11-23 19:04:52 -0500
commit7b4c7b75be351e9b6a40093cbccab728dd89064f (patch)
tree01126ac3823a1f1b197ac1865d7bc628eb4676a5 /rts
parentc14b723f7fa24b4db0b561f9ab0d6e0f4261fd2f (diff)
downloadhaskell-7b4c7b75be351e9b6a40093cbccab728dd89064f.tar.gz
Fix typos
Diffstat (limited to 'rts')
-rw-r--r--rts/RetainerProfile.c2
-rw-r--r--rts/StablePtr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/rts/RetainerProfile.c b/rts/RetainerProfile.c
index 97c4b35a71..a836c5bf2a 100644
--- a/rts/RetainerProfile.c
+++ b/rts/RetainerProfile.c
@@ -374,7 +374,7 @@ computeRetainerSet( traverseState *ts )
// all are guaranteed to be valid, or reachable.
//
// The following code assumes that WEAK objects are considered to be roots
- // for retainer profilng.
+ // for retainer profiling.
for (n = 0; n < n_capabilities; n++) {
// NB: after a GC, all nursery weak_ptr_lists have been migrated
// to the global lists living in the generations
diff --git a/rts/StablePtr.c b/rts/StablePtr.c
index 2181b83d90..edcd863183 100644
--- a/rts/StablePtr.c
+++ b/rts/StablePtr.c
@@ -32,7 +32,7 @@
for garbage collection because the act of passing them makes a copy
from the heap, stack or wherever they are onto the C-world stack.
However, if we were to pass a heap object such as a (Haskell) @String@
- and a garbage collection occured before we finished using it, we'd run
+ and a garbage collection occurred before we finished using it, we'd run
into problems since the heap object might have been moved or even
deleted.