aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorRichard Brooksby2013-02-18 15:46:39 +0000
committerRichard Brooksby2013-02-18 15:46:39 +0000
commitc4d6a2de1fe68470485c523b54f1c0d59ff87f2d (patch)
tree5ae114ac8651dac869663f2a23a05b062dfcfc5b /mps/code
parent2706097eab7b3d1aa9429ef0e4ea1ac9f3c6edbe (diff)
downloademacs-c4d6a2de1fe68470485c523b54f1c0d59ff87f2d.tar.gz
emacs-c4d6a2de1fe68470485c523b54f1c0d59ff87f2d.zip
Merging spelling corrections contributed by bruce mitchener.
See <https://github.com/datafueled/memory-pool-system/commit/1c80ccb634669283a4c1244cac42e59e1b5adee2>. Copied from Perforce Change: 180956 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/arena.c2
-rw-r--r--mps/code/buffer.c6
-rw-r--r--mps/code/eventcnv.c2
-rw-r--r--mps/code/eventdef.h2
-rw-r--r--mps/code/meter.c4
-rw-r--r--mps/code/mpstd.h2
-rw-r--r--mps/code/proti3.c2
-rw-r--r--mps/code/pthrdext.c2
-rw-r--r--mps/code/table.c2
-rw-r--r--mps/code/thix.c2
-rw-r--r--mps/code/thw3.c2
-rw-r--r--mps/code/thw3i3.c6
-rw-r--r--mps/code/thw3i6.c6
-rw-r--r--mps/code/trace.c4
14 files changed, 22 insertions, 22 deletions
diff --git a/mps/code/arena.c b/mps/code/arena.c
index 2e71a67c17c..a2ef4da980f 100644
--- a/mps/code/arena.c
+++ b/mps/code/arena.c
@@ -46,7 +46,7 @@ static Res ArenaTrivDescribe(Arena arena, mps_lib_FILE *stream)
46} 46}
47 47
48 48
49/* AbstractArenaClass -- The abstact arena class definition 49/* AbstractArenaClass -- The abstract arena class definition
50 * 50 *
51 * .null: Most abstract class methods are set to NULL. See 51 * .null: Most abstract class methods are set to NULL. See
52 * <design/arena/#class.abstract.null>. */ 52 * <design/arena/#class.abstract.null>. */
diff --git a/mps/code/buffer.c b/mps/code/buffer.c
index f911a28c6b9..1731b2d9826 100644
--- a/mps/code/buffer.c
+++ b/mps/code/buffer.c
@@ -223,7 +223,7 @@ static Res BufferInitV(Buffer buffer, BufferClass class,
223 buffer->alignment = pool->alignment; /* .trans.mod */ 223 buffer->alignment = pool->alignment; /* .trans.mod */
224 buffer->base = (Addr)0; 224 buffer->base = (Addr)0;
225 buffer->initAtFlip = (Addr)0; 225 buffer->initAtFlip = (Addr)0;
226 /* In the next three assignements we really mean zero, not NULL, because 226 /* In the next three assignments we really mean zero, not NULL, because
227 the bit pattern is compared. It's pretty unlikely we'll encounter 227 the bit pattern is compared. It's pretty unlikely we'll encounter
228 a platform where this makes a difference. */ 228 a platform where this makes a difference. */
229 buffer->ap_s.init = (mps_addr_t)0; 229 buffer->ap_s.init = (mps_addr_t)0;
@@ -861,7 +861,7 @@ Bool BufferTrip(Buffer buffer, Addr p, Size size)
861 return FALSE; 861 return FALSE;
862 } 862 }
863 863
864 /* Emit event including class if loggged */ 864 /* Emit event including class if logged */
865 if (buffer->mode & BufferModeLOGGED) { 865 if (buffer->mode & BufferModeLOGGED) {
866 Bool b; 866 Bool b;
867 Format format; 867 Format format;
@@ -1170,7 +1170,7 @@ static void bufferNoSetRankSet (Buffer buffer, RankSet rankset)
1170 1170
1171/* bufferNoReassignSeg -- basic BufferReassignSeg method 1171/* bufferNoReassignSeg -- basic BufferReassignSeg method
1172 * 1172 *
1173 * .noseg: basic buffers don't support attachment to sements, so this 1173 * .noseg: basic buffers don't support attachment to segments, so this
1174 * method should not be called. */ 1174 * method should not be called. */
1175 1175
1176static void bufferNoReassignSeg (Buffer buffer, Seg seg) 1176static void bufferNoReassignSeg (Buffer buffer, Seg seg)
diff --git a/mps/code/eventcnv.c b/mps/code/eventcnv.c
index 99974831908..b583620a032 100644
--- a/mps/code/eventcnv.c
+++ b/mps/code/eventcnv.c
@@ -84,7 +84,7 @@ static void evwarn(const char *format, ...)
84 va_end(args); 84 va_end(args);
85} 85}
86 86
87/* everror -- flush stdout, mesage to stderr, exit */ 87/* everror -- flush stdout, message to stderr, exit */
88 88
89static void everror(const char *format, ...) 89static void everror(const char *format, ...)
90{ 90{
diff --git a/mps/code/eventdef.h b/mps/code/eventdef.h
index 70a32393d3d..5c6c3b0f2e1 100644
--- a/mps/code/eventdef.h
+++ b/mps/code/eventdef.h
@@ -195,7 +195,7 @@
195/* EVENT_*_PARAMS -- definition of event parameters 195/* EVENT_*_PARAMS -- definition of event parameters
196 * 196 *
197 * For each event type in EVENT_LIST, these macros list the parameters of 197 * For each event type in EVENT_LIST, these macros list the parameters of
198 * the event. THe columns are: 198 * the event. The columns are:
199 * - the positional index of the parameter in the list, used to define 199 * - the positional index of the parameter in the list, used to define
200 * numeric field names using the C preprocessor 200 * numeric field names using the C preprocessor
201 * - the parameter sort, similar to writef (Pointer, Addr, Word, Unsigned, 201 * - the parameter sort, similar to writef (Pointer, Addr, Word, Unsigned,
diff --git a/mps/code/meter.c b/mps/code/meter.c
index 04f684c07f3..b67cce42404 100644
--- a/mps/code/meter.c
+++ b/mps/code/meter.c
@@ -45,7 +45,7 @@ void MeterAccumulate(Meter meter, Size amount)
45 double dcount = (double)count; 45 double dcount = (double)count;
46 46
47 /* .limitation.variance: This computation accumulates a running 47 /* .limitation.variance: This computation accumulates a running
48 * mean^2, minimizing overflow, but sacrificing numerical stablity 48 * mean^2, minimizing overflow, but sacrificing numerical stability
49 * for small variances. For more accuracy, the data set should be 49 * for small variances. For more accuracy, the data set should be
50 * emitted using a telemetry stream and analyzed off-line. 50 * emitted using a telemetry stream and analyzed off-line.
51 .stddev: stddev = sqrt(meanSquared - mean^2). 51 .stddev: stddev = sqrt(meanSquared - mean^2).
@@ -93,7 +93,7 @@ Res MeterWrite(Meter meter, mps_lib_FILE *stream)
93} 93}
94 94
95 95
96/* MeterEmit -- emit an evnet with the current data from the meter */ 96/* MeterEmit -- emit an event with the current data from the meter */
97 97
98void MeterEmit(Meter meter) 98void MeterEmit(Meter meter)
99{ 99{
diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h
index ad695bc23a9..61a20d3cbf2 100644
--- a/mps/code/mpstd.h
+++ b/mps/code/mpstd.h
@@ -40,7 +40,7 @@
40 * we want it to just work out of the box with whatever compiler is 40 * we want it to just work out of the box with whatever compiler is
41 * being used. In other words we do not require the client to define 41 * being used. In other words we do not require the client to define
42 * CONFIG_PF_*. 42 * CONFIG_PF_*.
43 * (This is the case that justifes mpstd.h doing platform detection 43 * (This is the case that justifies mpstd.h doing platform detection
44 * by looking at preprocessor symbols; otherwise we'd simply use 44 * by looking at preprocessor symbols; otherwise we'd simply use
45 * CONFIG_PF_*). 45 * CONFIG_PF_*).
46 * 46 *
diff --git a/mps/code/proti3.c b/mps/code/proti3.c
index 9f9480f31b0..d3a13aef299 100644
--- a/mps/code/proti3.c
+++ b/mps/code/proti3.c
@@ -44,7 +44,7 @@
44 * .assume.i3: Assume the following about the i386 environment: 44 * .assume.i3: Assume the following about the i386 environment:
45 * Steppable instructions (.assume.want) use the CS, DS & SS 45 * Steppable instructions (.assume.want) use the CS, DS & SS
46 * segment registers only (see .source.i486 Table 2-3). 46 * segment registers only (see .source.i486 Table 2-3).
47 * The procesor runs in 32 bit mode. 47 * The processor runs in 32 bit mode.
48 * The CS, DS and SS segment registers all describe identical 32- 48 * The CS, DS and SS segment registers all describe identical 32-
49 * bit flat address spaces. 49 * bit flat address spaces.
50 */ 50 */
diff --git a/mps/code/pthrdext.c b/mps/code/pthrdext.c
index ab50a999ff5..934a0a646a0 100644
--- a/mps/code/pthrdext.c
+++ b/mps/code/pthrdext.c
@@ -37,7 +37,7 @@ SRCID(pthreadext, "$Id$");
37#define PTHREADEXT_SIGRESUME SIGXCPU 37#define PTHREADEXT_SIGRESUME SIGXCPU
38 38
39 39
40/* Static data initiatialized on first use of the module 40/* Static data initialized on first use of the module
41 * See <design/pthreadext/#impl.static>.* 41 * See <design/pthreadext/#impl.static>.*
42 */ 42 */
43 43
diff --git a/mps/code/table.c b/mps/code/table.c
index 3e5cc0c14ae..a0d0275c0c3 100644
--- a/mps/code/table.c
+++ b/mps/code/table.c
@@ -133,7 +133,7 @@ static TableEntry tableFind(Table table, Word key, Bool skip_deleted)
133 * 133 *
134 * .hash.initial: Any reasonable number. 134 * .hash.initial: Any reasonable number.
135 * 135 *
136 * .hash.growth: A compromise between space inefficency (growing bigger 136 * .hash.growth: A compromise between space inefficiency (growing bigger
137 * than required) and time inefficiency (growing too slowly, with all 137 * than required) and time inefficiency (growing too slowly, with all
138 * the rehash costs at every step). A factor of 2 means that at the 138 * the rehash costs at every step). A factor of 2 means that at the
139 * point of growing to a size X table, hash-work equivalent to filling 139 * point of growing to a size X table, hash-work equivalent to filling
diff --git a/mps/code/thix.c b/mps/code/thix.c
index b792cd96783..7760a5e1349 100644
--- a/mps/code/thix.c
+++ b/mps/code/thix.c
@@ -41,7 +41,7 @@
41SRCID(thix, "$Id$"); 41SRCID(thix, "$Id$");
42 42
43 43
44/* ThreadStruct -- thread desriptor */ 44/* ThreadStruct -- thread descriptor */
45 45
46typedef struct mps_thr_s { /* PThreads thread structure */ 46typedef struct mps_thr_s { /* PThreads thread structure */
47 Sig sig; /* <design/sig/> */ 47 Sig sig; /* <design/sig/> */
diff --git a/mps/code/thw3.c b/mps/code/thw3.c
index 250951018da..e1e5c97841b 100644
--- a/mps/code/thw3.c
+++ b/mps/code/thw3.c
@@ -23,7 +23,7 @@
23 * 23 *
24 * Other errors are assumed to only happen in certain circumstances. 24 * Other errors are assumed to only happen in certain circumstances.
25 * .error.resume: ResumeThread is assumed to succeed unless the thread 25 * .error.resume: ResumeThread is assumed to succeed unless the thread
26 * has been destroyed (in fact, perversely, it appears to succeeed even 26 * has been destroyed (in fact, perversely, it appears to succeed even
27 * when the thread has been destroyed). 27 * when the thread has been destroyed).
28 * .error.suspend: SuspendThread is assumed to succeed unless the thread 28 * .error.suspend: SuspendThread is assumed to succeed unless the thread
29 * has been destroyed. 29 * has been destroyed.
diff --git a/mps/code/thw3i3.c b/mps/code/thw3i3.c
index 3e2e6ee1a5c..33424b6cf54 100644
--- a/mps/code/thw3i3.c
+++ b/mps/code/thw3i3.c
@@ -81,7 +81,7 @@ Res ThreadScan(ScanState ss, Thread thread, void *stackBot)
81 81
82 /* scan stack and register roots in other threads */ 82 /* scan stack and register roots in other threads */
83 83
84 /* This dumps the relevent registers into the context */ 84 /* This dumps the relevant registers into the context */
85 /* .context.flags */ 85 /* .context.flags */
86 context.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER; 86 context.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER;
87 /* .thread.handle.get-context */ 87 /* .thread.handle.get-context */
@@ -109,8 +109,8 @@ Res ThreadScan(ScanState ss, Thread thread, void *stackBot)
109 109
110 /* (.context.regroots) 110 /* (.context.regroots)
111 * This scans the root registers (.context.regroots). It also 111 * This scans the root registers (.context.regroots). It also
112 * unecessarily scans the rest of the context. The optimisation 112 * unnecessarily scans the rest of the context. The optimisation
113 * to scan only relevent parts would be machine dependent. 113 * to scan only relevant parts would be machine dependent.
114 */ 114 */
115 res = TraceScanAreaTagged(ss, (Addr *)&context, 115 res = TraceScanAreaTagged(ss, (Addr *)&context,
116 (Addr *)((char *)&context + sizeof(CONTEXT))); 116 (Addr *)((char *)&context + sizeof(CONTEXT)));
diff --git a/mps/code/thw3i6.c b/mps/code/thw3i6.c
index 86e5f6edc8f..9b0eae55db6 100644
--- a/mps/code/thw3i6.c
+++ b/mps/code/thw3i6.c
@@ -81,7 +81,7 @@ Res ThreadScan(ScanState ss, Thread thread, void *stackBot)
81 81
82 /* scan stack and register roots in other threads */ 82 /* scan stack and register roots in other threads */
83 83
84 /* This dumps the relevent registers into the context */ 84 /* This dumps the relevant registers into the context */
85 /* .context.flags */ 85 /* .context.flags */
86 context.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER; 86 context.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER;
87 /* .thread.handle.get-context */ 87 /* .thread.handle.get-context */
@@ -109,8 +109,8 @@ Res ThreadScan(ScanState ss, Thread thread, void *stackBot)
109 109
110 /* (.context.regroots) 110 /* (.context.regroots)
111 * This scans the root registers (.context.regroots). It also 111 * This scans the root registers (.context.regroots). It also
112 * unecessarily scans the rest of the context. The optimisation 112 * unnecessarily scans the rest of the context. The optimisation
113 * to scan only relevent parts would be machine dependent. 113 * to scan only relevant parts would be machine dependent.
114 */ 114 */
115 res = TraceScanAreaTagged(ss, (Addr *)&context, 115 res = TraceScanAreaTagged(ss, (Addr *)&context,
116 (Addr *)((char *)&context + sizeof(CONTEXT))); 116 (Addr *)((char *)&context + sizeof(CONTEXT)));
diff --git a/mps/code/trace.c b/mps/code/trace.c
index e7ab41c8d80..9401696ba2d 100644
--- a/mps/code/trace.c
+++ b/mps/code/trace.c
@@ -990,7 +990,7 @@ static Bool traceFindGrey(Seg *segReturn, Rank *rankReturn,
990 Rank band = traceBand(trace); 990 Rank band = traceBand(trace);
991 991
992 /* Within the R band we look for segments of rank R first, */ 992 /* Within the R band we look for segments of rank R first, */
993 /* then succesively earlier ones. Slight hack: We never */ 993 /* then successively earlier ones. Slight hack: We never */
994 /* expect to find any segments of RankAMBIG, so we use */ 994 /* expect to find any segments of RankAMBIG, so we use */
995 /* this as a terminating condition for the loop. */ 995 /* this as a terminating condition for the loop. */
996 for(rank = band; rank > RankAMBIG; --rank) { 996 for(rank = band; rank > RankAMBIG; --rank) {
@@ -1245,7 +1245,7 @@ void TraceSegAccess(Arena arena, Seg seg, AccessSet mode)
1245 AVER((mode & SegSM(seg) & AccessREAD) == 0 1245 AVER((mode & SegSM(seg) & AccessREAD) == 0
1246 || TraceSetInter(SegGrey(seg), arena->flippedTraces) != TraceSetEMPTY); 1246 || TraceSetInter(SegGrey(seg), arena->flippedTraces) != TraceSetEMPTY);
1247 1247
1248 /* If it's a write acess, then the segment must have a summary that */ 1248 /* If it's a write access, then the segment must have a summary that */
1249 /* is smaller than the mutator's summary (which is assumed to be */ 1249 /* is smaller than the mutator's summary (which is assumed to be */
1250 /* RefSetUNIV). */ 1250 /* RefSetUNIV). */
1251 AVER((mode & SegSM(seg) & AccessWRITE) == 0 || SegSummary(seg) != RefSetUNIV); 1251 AVER((mode & SegSM(seg) & AccessWRITE) == 0 || SegSummary(seg) != RefSetUNIV);