From dd509cdee9b362f999dcaa7ef4251f57cd2d9724 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 10 Feb 2023 14:13:49 +0700 Subject: [PATCH] Fix typos. --- mps/code/eventdef.h | 4 ++-- mps/code/freelist.c | 4 ++-- mps/code/misc.h | 4 ++-- mps/code/mpmtypes.h | 2 +- mps/code/mpslib.h | 8 ++++---- mps/code/poolamc.c | 2 +- mps/code/poollo.c | 2 +- mps/code/root.c | 2 +- mps/design/poolamc.txt | 6 +++--- mps/tool/monitor | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/mps/code/eventdef.h b/mps/code/eventdef.h index 963bf03401a..60617ca4b87 100644 --- a/mps/code/eventdef.h +++ b/mps/code/eventdef.h @@ -608,7 +608,7 @@ PARAM(X, 0, P, trace, "the trace") \ PARAM(X, 1, P, arena, "trace's arena") \ PARAM(X, 2, W, fixRefCount, "references which pass zone check") \ - PARAM(X, 3, W, segRefCount, "referencess which refer to segments") \ + PARAM(X, 3, W, segRefCount, "references which refer to segments") \ PARAM(X, 4, W, whiteSegRefCount, "references which refer to white segments") \ PARAM(X, 5, W, nailCount, "segments nailed by ambiguous references") \ PARAM(X, 6, W, snapCount, "references snapped to forwarded objects") \ @@ -654,7 +654,7 @@ #define EVENT_VMCompact_PARAMS(PARAM, X) \ PARAM(X, 0, W, vmem0, "pre-collection reserved size") \ - PARAM(X, 1, W, vmem1, "pre-compact reseved size") \ + PARAM(X, 1, W, vmem1, "pre-compact reserved size") \ PARAM(X, 2, W, vmem2, "post-compact reserved size") #define EVENT_VMFinish_PARAMS(PARAM, X) \ diff --git a/mps/code/freelist.c b/mps/code/freelist.c index 2ec37a98e91..8d70780da22 100644 --- a/mps/code/freelist.c +++ b/mps/code/freelist.c @@ -147,7 +147,7 @@ static void freelistBlockSetLimit(Freelist fl, FreelistBlock block, Addr limit) } -/* freelistBlockInit -- initalize block storing the range [base, limit). */ +/* freelistBlockInit -- initialize block storing the range [base, limit). */ static FreelistBlock freelistBlockInit(Freelist fl, Addr base, Addr limit) { @@ -714,7 +714,7 @@ fail: /* freelistDescribeVisitor -- visitor method for freelistDescribe * - * Writes a decription of the range into the stream pointed to by + * Writes a description of the range into the stream pointed to by * closure. */ diff --git a/mps/code/misc.h b/mps/code/misc.h index 71ff471262a..b434c4acdcf 100644 --- a/mps/code/misc.h +++ b/mps/code/misc.h @@ -79,7 +79,7 @@ typedef const struct SrcIdStruct { /* NOOP -- null statement * * Do not be tempted to use NULL, or just semicolon as the null - * statement. These items are dangerously ambigous and could cause + * statement. These items are dangerously ambiguous and could cause * subtle bugs if misplaced. NOOP is a macro which is guaranteed to * cause an error if it is not used in a statement context. */ @@ -146,7 +146,7 @@ typedef const struct SrcIdStruct { /* UNUSED -- declare parameter unused * - * This macro supresses warnings about unused parameters. It should be + * This macro suppresses warnings about unused parameters. It should be * applied to the parameter at the beginning of the body of the * procedure. * diff --git a/mps/code/mpmtypes.h b/mps/code/mpmtypes.h index 144331c08ba..3511a46afe9 100644 --- a/mps/code/mpmtypes.h +++ b/mps/code/mpmtypes.h @@ -327,7 +327,7 @@ enum { /* Root Variants -- see * - * .rootvar: Synchonize with + * .rootvar: Synchronize with */ enum { diff --git a/mps/code/mpslib.h b/mps/code/mpslib.h index f7f1eac6fc0..be0fbde385a 100644 --- a/mps/code/mpslib.h +++ b/mps/code/mpslib.h @@ -21,18 +21,18 @@ extern int mps_lib_get_EOF(void); #define mps_lib_EOF (mps_lib_get_EOF()) -/* An anonymous structure type used to represent files. Analagous to +/* An anonymous structure type used to represent files. Analogous to `FILE *` from stdio.h. */ typedef struct mps_lib_stream_s mps_lib_FILE; -/* Return the standard output and standard error streams. Analagous to +/* Return the standard output and standard error streams. Analogous to `stdout` and `stderr` from stdio.h. */ extern mps_lib_FILE *mps_lib_get_stderr(void); extern mps_lib_FILE *mps_lib_get_stdout(void); #define mps_lib_stderr (mps_lib_get_stderr()) #define mps_lib_stdout (mps_lib_get_stdout()) -/* Send a character or string to a stream. Analagous to `fputc` and `fputs` +/* Send a character or string to a stream. Analogous to `fputc` and `fputs` from stdio.h. */ extern int mps_lib_fputc(int, mps_lib_FILE *); extern int mps_lib_fputs(const char *, mps_lib_FILE *); @@ -55,7 +55,7 @@ typedef void (*mps_lib_assert_fail_t)(const char *, unsigned, const char *); extern mps_lib_assert_fail_t mps_lib_assert_fail_install(mps_lib_assert_fail_t); -/* Set, copy, or compare memory. Analagous to `memset`, `memcpy`, and +/* Set, copy, or compare memory. Analogous to `memset`, `memcpy`, and `memcmp` from string.h. */ extern void *(mps_lib_memset)(void *, int, size_t); extern void *(mps_lib_memcpy)(void *, const void *, size_t); diff --git a/mps/code/poolamc.c b/mps/code/poolamc.c index 9e817684f39..34b3920fadf 100644 --- a/mps/code/poolamc.c +++ b/mps/code/poolamc.c @@ -35,7 +35,7 @@ static Res amcSegFixEmergency(Seg seg, ScanState ss, Ref *refIO); static void amcSegWalk(Seg seg, Format format, FormattedObjectsVisitor f, void *p, size_t s); -/* local class declations */ +/* local class declarations */ typedef AMC AMCZPool; #define AMCZPoolCheck AMCCheck diff --git a/mps/code/poollo.c b/mps/code/poollo.c index 25295e604c1..1e41f5f6b47 100644 --- a/mps/code/poollo.c +++ b/mps/code/poollo.c @@ -312,7 +312,7 @@ static void loSegReclaim(Seg seg, Trace trace) Buffer buffer; Bool hasBuffer = SegBuffer(&buffer, seg); Count reclaimedGrains = (Count)0; - Format format = NULL; /* supress "may be used uninitialized" warning */ + Format format = NULL; /* suppress "may be used uninitialized" warning */ Count preservedInPlaceCount = (Count)0; Size preservedInPlaceSize = (Size)0; Bool b; diff --git a/mps/code/root.c b/mps/code/root.c index 42336bbe75e..14963f08808 100644 --- a/mps/code/root.c +++ b/mps/code/root.c @@ -95,7 +95,7 @@ Bool RootModeCheck(RootMode mode) /* RootCheck -- check the consistency of a root structure * - * .rootcheck: Keep synchonized with . */ + * .rootcheck: Keep synchronized with . */ Bool RootCheck(Root root) { diff --git a/mps/design/poolamc.txt b/mps/design/poolamc.txt index 670dafd00a1..8dd306a4352 100644 --- a/mps/design/poolamc.txt +++ b/mps/design/poolamc.txt @@ -283,7 +283,7 @@ The reasons why a segment and its pages might be retained are: #. ambiguous reference to first-obj: unavoidable page retention (only the mutator can reduce this, if they so wish, by nulling out ambig - referencess); + references); #. ambiguous reference to rest-obj: tuning MPS LSP policy could mitigate this, reducing the likelihood of rest-objs being co-located with large first-objs; @@ -459,7 +459,7 @@ chooses exactly one of three options: broken heart's forwarding pointer. If the rank of the reference is ``RankAMBIG`` then it either does (1) -or (2) depending on wether there is an existing nailboard or not. +or (2) depending on whether there is an existing nailboard or not. Otherwise (the rank is exact or higher) if there is a broken heart it is used to snapout the pointer. Otherwise it is as for an ``RankAMBIG`` reference: we either do (1) or (2). @@ -521,7 +521,7 @@ _`.struct.pool`: Like other pool class instances, it contains a _`.struct.format`: The ``format`` field points to a ``Format`` structure describing the object format of objects allocated in the -pool. The field is intialized by ``AMCInit()`` from a parameter, and +pool. The field is initialized by ``AMCInit()`` from a parameter, and thereafter it is not changed until the pool is destroyed. .. note:: diff --git a/mps/tool/monitor b/mps/tool/monitor index 73d0d38ab01..49437e48c2e 100755 --- a/mps/tool/monitor +++ b/mps/tool/monitor @@ -642,7 +642,7 @@ class Trace(EventHandler): self.add_count('snaps', event.snapCount) self.add_count('forwarded', event.forwardedCount) self.add_size('forwarded', event.forwardedSize) - self.add_count('preseved in place', event.preservedInPlaceCount) + self.add_count('preserved in place', event.preservedInPlaceCount) self.add_size('preserved in place', event.preservedInPlaceSize) def TraceStatReclaim(self, t, event):