summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBrian Wignall <brianwignall@gmail.com>2021-02-05 09:03:21 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-06 09:30:34 -0500
commit3da472f0e78fe5f1068be0cc2b1c0762532da9f9 (patch)
treed88a147c49aa25fff13866de9b87c712213fbd3f /rts
parent9b7dcd80f16efda57e4e51e39d61b55a11c72014 (diff)
downloadhaskell-3da472f0e78fe5f1068be0cc2b1c0762532da9f9.tar.gz
Fix typos
Diffstat (limited to 'rts')
-rw-r--r--rts/HeapStackCheck.cmm2
-rw-r--r--rts/RtsAPI.c4
-rw-r--r--rts/RtsFlags.c2
-rw-r--r--rts/Stats.c2
-rw-r--r--rts/sm/GC.c2
-rw-r--r--rts/win32/AsyncWinIO.c6
6 files changed, 9 insertions, 9 deletions
diff --git a/rts/HeapStackCheck.cmm b/rts/HeapStackCheck.cmm
index b8df323c8b..ba89f75522 100644
--- a/rts/HeapStackCheck.cmm
+++ b/rts/HeapStackCheck.cmm
@@ -524,7 +524,7 @@ stg_block_takemvar_finally
jump StgReturn [R1];
}
-// Stack useage covered by RESERVED_STACK_WORDS
+// Stack usage covered by RESERVED_STACK_WORDS
stg_block_takemvar /* mvar passed in R1 */
{
Sp_adj(-2);
diff --git a/rts/RtsAPI.c b/rts/RtsAPI.c
index 3f18a5bc02..d334a05dfb 100644
--- a/rts/RtsAPI.c
+++ b/rts/RtsAPI.c
@@ -720,7 +720,7 @@ PauseToken *rts_pause (void)
Task * task = getMyTask();
if (rts_pausing_task == task)
{
- // This task already pased the RTS.
+ // This task already passed the RTS.
errorBelch("error: rts_pause: This thread has already paused the RTS.");
stg_exit(EXIT_FAILURE);
}
@@ -799,7 +799,7 @@ static void assert_isPausedOnMyTask(const char *functionName)
if (task != rts_pausing_task)
{
// We don't have ownership of rts_pausing_task, so it may have changed
- // just after the above read. Still, we are garanteed that
+ // just after the above read. Still, we are guaranteed that
// rts_pausing_task won't be set to the current task (because the
// current task is here now!), so the error messages are still correct.
errorBelch (
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index ddd561b29c..380ccc3afc 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -502,7 +502,7 @@ usage_text[] = {
#if defined(mingw32_HOST_OS)
" --io-manager-threads=<num>",
" The number of worker threads to use in the native I/O manager to",
-" handle completion events. (defualt: num cores)",
+" handle completion events. (default: num cores)",
#endif
" -e<n> Maximum number of outstanding local sparks (default: 4096)",
#endif
diff --git a/rts/Stats.c b/rts/Stats.c
index 53251bb7d6..2770696b66 100644
--- a/rts/Stats.c
+++ b/rts/Stats.c
@@ -1595,7 +1595,7 @@ Parallel garbage collector counters:
* scav_find_work:
Counts iterations of scavenge loop
* max_n_todo_overflow:
- Tracks the maximum length of todo_overflow lists in the gc_thread structre.
+ Tracks the maximum length of todo_overflow lists in the gc_thread structure.
See comment in grab_local_todo_block.
*/
diff --git a/rts/sm/GC.c b/rts/sm/GC.c
index 0f9a9eaa84..6d222da02a 100644
--- a/rts/sm/GC.c
+++ b/rts/sm/GC.c
@@ -1412,7 +1412,7 @@ waitForGcThreads (Capability *cap, bool idle_cap[])
}
}
- ASSERT(n_threads < n_capabilities); // must be less becasue we don't count ourself
+ ASSERT(n_threads < n_capabilities); // must be less because we don't count ourself
if(n_threads == 0) { return; }
ACQUIRE_LOCK(&gc_entry_mutex);
diff --git a/rts/win32/AsyncWinIO.c b/rts/win32/AsyncWinIO.c
index 0c0b45e60f..7fb71e92e7 100644
--- a/rts/win32/AsyncWinIO.c
+++ b/rts/win32/AsyncWinIO.c
@@ -149,7 +149,7 @@
* call ioManagerStart()
* Creat a thread to execute "runner"
- We never truely shut down the IO Manager. While this means we
+ We never truly shut down the IO Manager. While this means we
might block forever on the IOPort if the IO Manager is no longer
needed we consider this cheap compared to the complexity of
properly handling pausing and resuming of the manager.
@@ -284,7 +284,7 @@ void shutdownAsyncWinIO(bool wait_threads)
ioManagerDie ();
}
-/* Register the I/O completetion port handle PORT that the I/O manager will be
+/* Register the I/O completion port handle PORT that the I/O manager will be
monitoring. All handles are expected to be associated with this handle. */
void registerIOCPHandle (HANDLE port)
{
@@ -365,7 +365,7 @@ void registerAlertableWait (bool has_timeout, DWORD mssec)
ReleaseSRWLockExclusive (&wio_runner_lock);
/* Since we call registerAlertableWait only after
- processing I/O requests it's always desireable to wake
+ processing I/O requests it's always desirable to wake
up the runner here. */
WakeConditionVariable (&wakeEvent);