diff --git a/mps/code/abq.c b/mps/code/abq.c
index b88914e3c17..233f2b26445 100644
--- a/mps/code/abq.c
+++ b/mps/code/abq.c
@@ -5,7 +5,7 @@
*
* .purpose: A fixed-length FIFO queue.
*
- * .design:
+ * .design:
*/
#include "meter.h"
diff --git a/mps/code/abq.h b/mps/code/abq.h
index 90591de9a5f..89e6b252714 100644
--- a/mps/code/abq.h
+++ b/mps/code/abq.h
@@ -5,7 +5,7 @@
*
* .purpose: A fixed-length FIFO queue.
*
- * .design:
+ * .design:
*/
#ifndef abq_h
diff --git a/mps/code/airtest.c b/mps/code/airtest.c
index 8b5a6ac8a5c..966656132bd 100644
--- a/mps/code/airtest.c
+++ b/mps/code/airtest.c
@@ -24,7 +24,7 @@
* but fails on lii6ll in variety HOT. Rather than struggle to defeat
* the Clang optimizer, we choose not to test in this configuration.
* In any case, the MPS does not guarantee anything about timely
- * finalization (see ).
+ * finalization .
*/
#include "mps.h"
diff --git a/mps/code/amcssth.c b/mps/code/amcssth.c
index 5b15a5535e9..201bdd31be0 100644
--- a/mps/code/amcssth.c
+++ b/mps/code/amcssth.c
@@ -126,7 +126,7 @@ static void *kid_thread(void *arg)
closure_t cl = arg;
/* Register the thread twice to check this is supported -- see
- *
+ *
*/
die(mps_thread_reg(&thread1, arena), "thread_reg");
die(mps_thread_reg(&thread2, arena), "thread_reg");
diff --git a/mps/code/arena.c b/mps/code/arena.c
index fec86cef14f..5e2d01534a8 100644
--- a/mps/code/arena.c
+++ b/mps/code/arena.c
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2001-2018 Ravenbrook Limited. See end of file for license.
*
- * .sources: is the main design document. */
+ * .sources: is the main design document. */
#include "tract.h"
#include "poolmvff.h"
@@ -27,7 +27,7 @@ SRCID(arena, "$Id$");
Bool ArenaGrainSizeCheck(Size size)
{
CHECKL(size > 0);
- /* */
+ /* */
CHECKL(SizeIsAligned(size, MPS_PF_ALIGN));
/* Grain size must be a power of 2 for the tract lookup and the
* zones to work. */
@@ -178,7 +178,7 @@ Bool ArenaCheck(Arena arena)
CHECKD(Globals, ArenaGlobals(arena));
CHECKL(BoolCheck(arena->poolReady));
- if (arena->poolReady) { /* */
+ if (arena->poolReady) { /* */
CHECKD(MVFF, &arena->controlPoolStruct);
}
@@ -271,7 +271,7 @@ static Res ArenaAbsInit(Arena arena, Size grainSize, ArgList args)
arena->grainSize = grainSize;
/* zoneShift must be overridden by arena class init */
arena->zoneShift = ZoneShiftUNSET;
- arena->poolReady = FALSE; /* */
+ arena->poolReady = FALSE; /* */
arena->lastTract = NULL;
arena->lastTractBase = NULL;
arena->hasFreeLand = FALSE;
@@ -517,7 +517,7 @@ Res ControlInit(Arena arena)
} MPS_ARGS_END(args);
if (res != ResOK)
return res;
- arena->poolReady = TRUE; /* */
+ arena->poolReady = TRUE; /* */
EventLabelPointer(&arena->controlPoolStruct, EventInternString("Control"));
return ResOK;
}
@@ -677,7 +677,7 @@ Res ArenaDescribeTracts(Arena arena, mps_lib_FILE *stream, Count depth)
* control pool, which is an MV pool embedded in the arena itself.
*
* .controlalloc.addr: In implementations where Addr is not compatible
- * with void* (), ControlAlloc must take care of
+ * with void* , ControlAlloc must take care of
* allocating so that the block can be addressed with a void*. */
Res ControlAlloc(void **baseReturn, Arena arena, size_t size)
@@ -793,7 +793,7 @@ void ArenaChunkRemoved(Arena arena, Chunk chunk)
* This is a primitive allocator used to allocate pages for the arena
* Land. It is called rarely and can use a simple search. It may not
* use the Land or any pool, because it is used as part of the
- * bootstrap. See design.mps.bootstrap.land.sol.alloc.
+ * bootstrap. .
*/
static Res arenaAllocPageInChunk(Addr *baseReturn, Chunk chunk, Pool pool)
@@ -903,7 +903,7 @@ static void arenaExcludePage(Arena arena, Range pageRange)
* The arena's free land can't get memory for its block pool in the
* usual way (via ArenaAlloc), because it is the mechanism behind
* ArenaAlloc! So we extend the block pool via a back door (see
- * arenaExtendCBSBlockPool). See design.mps.bootstrap.land.sol.pool.
+ * arenaExtendCBSBlockPool). .
*
* Only fails if it can't get a page for the block pool.
*/
@@ -1106,7 +1106,7 @@ Res ArenaAlloc(Addr *baseReturn, LocusPref pref, Size size, Pool pool)
base = TractBase(tract);
- /* cache the tract - */
+ /* cache the tract - */
arena->lastTract = tract;
arena->lastTractBase = base;
@@ -1139,7 +1139,7 @@ void ArenaFree(Addr base, Size size, Pool pool)
RangeInitSize(&range, base, size);
- /* uncache the tract if in range - */
+ /* uncache the tract if in range - */
if (base <= arena->lastTractBase && arena->lastTractBase < RangeLimit(&range))
{
arena->lastTract = NULL;
diff --git a/mps/code/arenacl.c b/mps/code/arenacl.c
index 2dd5564acec..5aa0bc826b3 100644
--- a/mps/code/arenacl.c
+++ b/mps/code/arenacl.c
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2001-2014 Ravenbrook Limited. See end of file for license.
*
- * .design: See .
+ * .design: .
*
* .improve.remember: One possible performance improvement is to
* remember (a conservative approximation to) the indices of the first
@@ -30,7 +30,7 @@ DECLARE_CLASS(Arena, ClientArena, AbstractArena);
typedef struct ClientArenaStruct {
ArenaStruct arenaStruct; /* generic arena structure */
- Sig sig; /* */
+ Sig sig; /* */
} ClientArenaStruct;
typedef struct ClientArenaStruct *ClientArena;
@@ -45,7 +45,7 @@ typedef struct ClientChunkStruct {
ChunkStruct chunkStruct; /* generic chunk */
Size freePages; /* number of free pages in chunk */
Addr pageBase; /* base of first managed page in chunk */
- Sig sig; /* */
+ Sig sig; /* */
} ClientChunkStruct;
#define ClientChunk2Chunk(clchunk) (&(clchunk)->chunkStruct)
@@ -327,7 +327,7 @@ static void ClientArenaDestroy(Arena arena)
ClientArena clientArena = MustBeA(ClientArena, arena);
/* Destroy all chunks, including the primary. See
- * */
+ * */
arena->primary = NULL;
TreeTraverseAndDelete(&arena->chunkTree, clientChunkDestroy,
UNUSED_POINTER);
diff --git a/mps/code/arenavm.c b/mps/code/arenavm.c
index 2b44ef9e934..d11e1661da8 100644
--- a/mps/code/arenavm.c
+++ b/mps/code/arenavm.c
@@ -6,7 +6,7 @@
*
* DESIGN
*
- * .design: See , and
+ * .design: , and
*
* .vm.addr-is-star: In this file, Addr is compatible with C
* pointers, and Count with size_t (Index), because all refer to the
@@ -45,7 +45,7 @@ typedef struct VMChunkStruct {
VMStruct vmStruct; /* virtual memory descriptor */
Addr overheadMappedLimit; /* limit of pages mapped for overhead */
SparseArrayStruct pages; /* to manage backing store of page table */
- Sig sig; /* */
+ Sig sig; /* */
} VMChunkStruct;
#define VMChunk2Chunk(vmchunk) (&(vmchunk)->chunkStruct)
@@ -61,7 +61,7 @@ typedef struct VMChunkStruct {
/* VMArena
*
- * See for description.
+ * for description.
*/
typedef struct VMArenaStruct *VMArena;
@@ -78,7 +78,7 @@ typedef struct VMArenaStruct { /* VM arena structure */
ArenaVMExtendedCallback extended;
ArenaVMContractedCallback contracted;
RingStruct spareRing; /* spare (free but mapped) tracts */
- Sig sig; /* */
+ Sig sig; /* */
} VMArenaStruct;
#define VMArenaVM(vmarena) (&(vmarena)->vmStruct)
@@ -615,7 +615,7 @@ static Res VMArenaCreate(Arena *arenaReturn, ArgList args)
AVER(sizeof(vmArena->vmParams) == sizeof(vmParams));
(void)mps_lib_memcpy(vmArena->vmParams, vmParams, sizeof(vmArena->vmParams));
- /* */
+ /* */
vmArena->extendBy = size;
vmArena->extendMin = 0;
@@ -653,7 +653,7 @@ static Res VMArenaCreate(Arena *arenaReturn, ArgList args)
/* number of stripes as will fit into a reference set (the number of */
/* bits in a word). Fail if the chunk is so small stripes are smaller */
/* than pages. Note that some zones are discontiguous in the chunk if */
- /* the size is not a power of 2. See . */
+ /* the size is not a power of 2. . */
chunkSize = ChunkSize(chunk);
arena->zoneShift = SizeFloorLog2(chunkSize >> MPS_WORD_SHIFT);
AVER(ChunkPageSize(chunk) == ArenaGrainSize(arena));
@@ -688,7 +688,7 @@ static void VMArenaDestroy(Arena arena)
VM vm = &vmStruct;
/* Destroy all chunks, including the primary. See
- * */
+ * */
arena->primary = NULL;
TreeTraverseAndDelete(&arena->chunkTree, vmChunkDestroy,
UNUSED_POINTER);
@@ -1181,7 +1181,7 @@ static void VMCompact(Arena arena, Trace trace)
STATISTIC(vmem1 = ArenaReserved(arena));
/* Destroy chunks that are completely free, but not the primary
- * chunk. See
+ * chunk.
* TODO: add hysteresis here. See job003815. */
TreeTraverseAndDelete(&arena->chunkTree, vmChunkCompact, arena);
diff --git a/mps/code/arg.c b/mps/code/arg.c
index 8d129534a70..2a4d550a8a2 100644
--- a/mps/code/arg.c
+++ b/mps/code/arg.c
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2013-2018 Ravenbrook Limited. See end of file for license.
*
- * .source: See .
+ * .source: .
*/
#include "config.h"
diff --git a/mps/code/arg.h b/mps/code/arg.h
index 2b5b3fbb31a..b0be60b8dff 100644
--- a/mps/code/arg.h
+++ b/mps/code/arg.h
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2013-2014 Ravenbrook Limited. See end of file for license.
*
- * .source: See .
+ * .source: .
*/
#ifndef arg_h
diff --git a/mps/code/awlut.c b/mps/code/awlut.c
index b0a71ab7454..e5ff7b5d498 100644
--- a/mps/code/awlut.c
+++ b/mps/code/awlut.c
@@ -5,7 +5,7 @@
*
* DESIGN
*
- * .design: see .*
+ * .design: see
*/
#include "mpscawl.h"
diff --git a/mps/code/awluthe.c b/mps/code/awluthe.c
index f27613a75b0..bb053668d5a 100644
--- a/mps/code/awluthe.c
+++ b/mps/code/awluthe.c
@@ -5,7 +5,7 @@
*
* DESIGN
*
- * .design: see .*
+ * .design: see
*/
#include "mpscawl.h"
diff --git a/mps/code/awlutth.c b/mps/code/awlutth.c
index 97d2c3f6a0f..f550807962d 100644
--- a/mps/code/awlutth.c
+++ b/mps/code/awlutth.c
@@ -5,7 +5,7 @@
*
* DESIGN
*
- * .design: see .*
+ * .design: see
*/
#include "mpscawl.h"
diff --git a/mps/code/bt.c b/mps/code/bt.c
index 844846ba723..99e90e3c16a 100644
--- a/mps/code/bt.c
+++ b/mps/code/bt.c
@@ -9,13 +9,13 @@
*
* DESIGN
*
- * .design: see
+ * .design: see
*
* .aver.critical: The function BTIsResRange (and anything it calls)
- * is on the critical path because it is
+ * is on the critical path because it is
* called by NailboardIsResRange, which is called for every object in
* a nailboarded segment when the segment is scanned or reclaimed; see
- * .
+ * .
*/
#include "bt.h"
@@ -178,7 +178,7 @@ SRCID(bt, "$Id$");
/* BTCreate -- allocate a BT from the control pool
*
- * See
+ *
*/
Res BTCreate(BT *btReturn, Arena arena, Count length)
@@ -203,7 +203,7 @@ Res BTCreate(BT *btReturn, Arena arena, Count length)
/* BTDestroy -- free a BT to the control pool.
*
- * See
+ *
*/
void BTDestroy(BT bt, Arena arena, Count length)
@@ -232,7 +232,7 @@ Bool BTCheck(BT bt)
/* BTSize -- return the size of a BT
*
- * See
+ *
*/
Size (BTSize)(Count n)
@@ -246,7 +246,7 @@ Size (BTSize)(Count n)
/* BTGet -- get a bit from a BT
*
- * See
+ *
*/
Bool (BTGet)(BT t, Index i)
@@ -261,7 +261,7 @@ Bool (BTGet)(BT t, Index i)
/* BTSet -- set a bit in a BT
*
- * See
+ *
*/
void (BTSet)(BT t, Index i)
@@ -276,7 +276,7 @@ void (BTSet)(BT t, Index i)
/* BTRes -- reset a bit in a BT
*
- *
+ *
*/
void (BTRes)(BT t, Index i)
@@ -291,7 +291,7 @@ void (BTRes)(BT t, Index i)
/* BTSetRange -- set a range of bits in a BT
*
- *
+ *
*/
void BTSetRange(BT t, Index base, Index limit)
@@ -313,7 +313,7 @@ void BTSetRange(BT t, Index base, Index limit)
/* BTIsResRange -- test whether a range of bits is all reset
*
- * See .
+ * .
*/
Bool BTIsResRange(BT bt, Index base, Index limit)
@@ -337,7 +337,7 @@ Bool BTIsResRange(BT bt, Index base, Index limit)
/* BTIsSetRange -- test whether a range of bits is all set
*
- * See .
+ * .
*/
Bool BTIsSetRange(BT bt, Index base, Index limit)
@@ -365,7 +365,7 @@ Bool BTIsSetRange(BT bt, Index base, Index limit)
/* BTResRange -- reset a range of bits in a BT
*
- *
+ *
*/
void BTResRange(BT t, Index base, Index limit)
@@ -618,7 +618,7 @@ btFindResHighLabel:; \
*
* Starts searching at the low end of the search range.
*
- * See .
+ * .
*/
static Bool BTFindResRange(Index *baseReturn, Index *limitReturn,
@@ -708,7 +708,7 @@ static Bool BTFindResRange(Index *baseReturn, Index *limitReturn,
*
* Starts searching at the high end of the search range.
*
- * See .
+ * .
*/
static Bool BTFindResRangeHigh(Index *baseReturn, Index *limitReturn,
@@ -805,7 +805,7 @@ static Bool BTFindResRangeHigh(Index *baseReturn, Index *limitReturn,
/* BTFindLongResRange -- find long range of reset bits in a bit table
*
- * See .
+ * .
*/
Bool BTFindLongResRange(Index *baseReturn, Index *limitReturn,
@@ -823,7 +823,7 @@ Bool BTFindLongResRange(Index *baseReturn, Index *limitReturn,
/* BTFindLongResRangeHigh -- find long range of reset bits in a bit table
*
- * See .
+ * .
*/
Bool BTFindLongResRangeHigh(Index *baseReturn, Index *limitReturn,
@@ -841,7 +841,7 @@ Bool BTFindLongResRangeHigh(Index *baseReturn, Index *limitReturn,
/* BTFindShortResRange -- find short range of reset bits in a bit table
*
- * See .
+ * .
*/
Bool BTFindShortResRange(Index *baseReturn, Index *limitReturn,
@@ -860,7 +860,7 @@ Bool BTFindShortResRange(Index *baseReturn, Index *limitReturn,
*
* Starts looking from the top of the search range.
*
- * See .
+ * .
*/
Bool BTFindShortResRangeHigh(Index *baseReturn, Index *limitReturn,
@@ -878,7 +878,7 @@ Bool BTFindShortResRangeHigh(Index *baseReturn, Index *limitReturn,
/* BTRangesSame -- check that a range of bits in two BTs are the same.
*
- * See
+ *
*/
Bool BTRangesSame(BT comparand, BT comparator, Index base, Index limit)
@@ -914,7 +914,7 @@ Bool BTRangesSame(BT comparand, BT comparator, Index base, Index limit)
/* BTCopyInvertRange -- copy a range of bits from one BT to another,
* inverting them as you go.
*
- * See
+ *
*/
void BTCopyInvertRange(BT fromBT, BT toBT, Index base, Index limit)
@@ -949,7 +949,7 @@ void BTCopyInvertRange(BT fromBT, BT toBT, Index base, Index limit)
/* BTCopyRange -- copy a range of bits from one BT to another
*
- * See
+ *
*/
void BTCopyRange(BT fromBT, BT toBT, Index base, Index limit)
@@ -989,7 +989,7 @@ void BTCopyRange(BT fromBT, BT toBT, Index base, Index limit)
* may differ for each range. We could try to be smart about
* detecting similar alignment - but we don't.
*
- * See
+ *
*/
void BTCopyOffsetRange(BT fromBT, BT toBT,
diff --git a/mps/code/bt.h b/mps/code/bt.h
index 4876f66715a..b3f6073bd3a 100644
--- a/mps/code/bt.h
+++ b/mps/code/bt.h
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2001-2014 Ravenbrook Limited. See end of file for license.
*
- * .source:
+ * .source:
*/
#ifndef bt_h
@@ -16,21 +16,21 @@
extern Size (BTSize)(Count length);
#define BTSize(n) (((n) + MPS_WORD_WIDTH-1) / MPS_WORD_WIDTH * sizeof(Word))
-/* */
+/* */
extern Bool (BTGet)(BT bt, Index index);
#define BTGet(a, i) \
((Bool)(((a)[((i) >> MPS_WORD_SHIFT)] \
>> ((i) & ~((Word)-1 << MPS_WORD_SHIFT))) \
& (Word)1))
-/* */
+/* */
extern void (BTSet)(BT bt, Index index);
#define BTSet(a, i) \
BEGIN \
(a)[((i)>>MPS_WORD_SHIFT)] |= (Word)1<<((i)&~((Word)-1< */
+/* */
extern void (BTRes)(BT bt, Index index);
#define BTRes(a, i) \
BEGIN \
diff --git a/mps/code/buffer.c b/mps/code/buffer.c
index 6bda32ed1e2..a77711e3faf 100644
--- a/mps/code/buffer.c
+++ b/mps/code/buffer.c
@@ -10,7 +10,7 @@
*
* DESIGN
*
- * .design: See .
+ * .design: .
*
* .ap.async: The mutator is allowed to change certain AP fields
* asynchronously. Functions that can be called on buffers not
@@ -231,7 +231,7 @@ static Res BufferInit(Buffer buffer, BufferClass klass,
/* BufferCreate -- create an allocation buffer
*
- * See .
+ * .
*/
Res BufferCreate(Buffer *bufferReturn, BufferClass klass,
@@ -318,7 +318,8 @@ void BufferDetach(Buffer buffer, Pool pool)
/* BufferDestroy -- destroy an allocation buffer
*
- * See . */
+ * .
+ */
void BufferDestroy(Buffer buffer)
{
@@ -439,7 +440,8 @@ void BufferSetAllocAddr(Buffer buffer, Addr addr)
/* BufferFramePush
*
- * See . */
+ * .
+ */
Res BufferFramePush(AllocFrame *frameReturn, Buffer buffer)
{
@@ -462,7 +464,8 @@ Res BufferFramePush(AllocFrame *frameReturn, Buffer buffer)
/* BufferFramePop
*
- * See . */
+ * .
+ */
Res BufferFramePop(Buffer buffer, AllocFrame frame)
{
@@ -478,7 +481,8 @@ Res BufferFramePop(Buffer buffer, AllocFrame frame)
/* BufferReserve -- reserve memory from an allocation buffer
*
- * .reserve: Keep in sync with . */
+ * .reserve: Keep in sync with .
+ */
Res BufferReserve(Addr *pReturn, Buffer buffer, Size size)
{
@@ -539,7 +543,7 @@ void BufferAttach(Buffer buffer, Addr base, Addr limit,
filled = AddrOffset(init, limit);
buffer->fillSize += filled;
if (buffer->isMutator) {
- if (base != init) { /* see */
+ if (base != init) { /* see */
Size prealloc = AddrOffset(base, init);
ArenaGlobals(buffer->arena)->allocMutatorSize -= prealloc;
}
@@ -634,7 +638,7 @@ Bool BufferCommit(Buffer buffer, Addr p, Size size)
AVER(SizeIsAligned(size, BufferPool(buffer)->alignment));
AVER(!BufferIsReady(buffer));
- /* See . */
+ /* . */
/* .commit.before: If a flip occurs before this point, when the */
/* pool reads "initAtFlip" it will point below the object, so it */
/* will be trashed and the commit must fail when trip is called. */
@@ -1029,7 +1033,7 @@ Bool BufferClassCheck(BufferClass klass)
/* BufferClass -- the vanilla buffer class definition
*
- * See . */
+ * . */
DEFINE_CLASS(Inst, BufferClass, klass)
{
@@ -1243,7 +1247,7 @@ static Res segBufDescribe(Inst inst, mps_lib_FILE *stream, Count depth)
/* SegBufClass -- SegBuf class definition
*
* Supports an association with a single segment when attached. See
- * . */
+ * . */
DEFINE_CLASS(Buffer, SegBuf, klass)
{
diff --git a/mps/code/cbs.c b/mps/code/cbs.c
index 3b774168d8c..6e4a7704dbf 100644
--- a/mps/code/cbs.c
+++ b/mps/code/cbs.c
@@ -9,7 +9,7 @@
* .purpose: CBSs are used to manage potentially unbounded collections
* of memory blocks.
*
- * .sources: .
+ * .sources: .
*
* .critical: In manual-allocation-bound programs using MVFF, many of
* these functions are on the critical paths via mps_alloc (and then
@@ -155,7 +155,7 @@ static void cbsUpdateZonedNode(SplayTree splay, Tree tree)
/* cbsInit -- Initialise a CBS structure
*
- * See .
+ * .
*/
ARG_DEFINE_KEY(cbs_block_pool, Pool);
@@ -231,7 +231,7 @@ static Res cbsInitZoned(Land land, Arena arena, Align alignment, ArgList args)
/* cbsFinish -- Finish a CBS structure
*
- * See .
+ * .
*/
static void cbsFinish(Inst inst)
@@ -253,7 +253,7 @@ static void cbsFinish(Inst inst)
/* cbsSize -- total size of ranges in CBS
*
- * See .
+ * .
*/
static Size cbsSize(Land land)
@@ -380,7 +380,7 @@ static void cbsBlockInsert(CBS cbs, RangeTree block)
/* cbsInsert -- Insert a range into the CBS
*
- * See .
+ * .
*
* .insert.alloc: Will only allocate a block if the range does not
* abut an existing range.
@@ -548,7 +548,7 @@ static Res cbsInsertSteal(Range rangeReturn, Land land, Range rangeIO)
/* cbsDelete -- Remove a range from a CBS
*
- * See .
+ * .
*
* .delete.alloc: Will only allocate a block if the range splits
* an existing range.
@@ -758,7 +758,7 @@ static Res cbsZonedSplayNodeDescribe(Tree tree, mps_lib_FILE *stream)
/* cbsIterate -- iterate over all blocks in CBS
*
- * See .
+ * .
*/
typedef struct CBSIterateClosure {
@@ -800,7 +800,7 @@ static Bool cbsIterate(Land land, LandVisitor visitor, void *visitorClosure)
/* cbsIterateAndDelete -- iterate over all blocks in CBS
*
- * See .
+ * .
*/
typedef struct CBSIterateAndDeleteClosure {
@@ -1137,7 +1137,7 @@ fail:
/* cbsDescribe -- describe a CBS
*
- * See .
+ * .
*/
static Res cbsDescribe(Inst inst, mps_lib_FILE *stream, Count depth)
diff --git a/mps/code/cbs.h b/mps/code/cbs.h
index 844cd8cba6c..dcde24dff95 100644
--- a/mps/code/cbs.h
+++ b/mps/code/cbs.h
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2001 Ravenbrook Limited. See end of file for license.
*
- * .source: .
+ * .source: .
*/
#ifndef cbs_h
diff --git a/mps/code/check.h b/mps/code/check.h
index eb7219bbe05..0f153872d23 100644
--- a/mps/code/check.h
+++ b/mps/code/check.h
@@ -196,8 +196,8 @@ extern unsigned CheckLevel;
/* TESTT -- check type simply
*
- * Must be thread safe. See
- * and .
+ * Must be thread safe.
+ * and .
*/
#define TESTT(type, val) ((val) != NULL && (val)->sig == type ## Sig)
@@ -334,7 +334,7 @@ extern unsigned CheckLevel;
* verify that certain types and fields are equivalent. They do not do
* a complete job. This trickery is justified by the security gained
* in knowing that matches the MPM. See
- * . [This paragraph is intended to
+ * . [This paragraph is intended to
* satisfy rule.impl.trick.]
*/
diff --git a/mps/code/clock.h b/mps/code/clock.h
index ec8ccc2bb80..8bfc4040063 100644
--- a/mps/code/clock.h
+++ b/mps/code/clock.h
@@ -3,7 +3,7 @@
* Copyright (c) 2001-2016 Ravenbrook Limited. See end of file for license.
* $Id$
*
- * .design: .
+ * .design: .
*/
#ifndef clock_h
diff --git a/mps/code/config.h b/mps/code/config.h
index 80789d8c069..42b100f342f 100644
--- a/mps/code/config.h
+++ b/mps/code/config.h
@@ -12,7 +12,7 @@
*
* DESIGN
*
- * See .
+ * .
*/
#ifndef config_h
@@ -433,7 +433,7 @@
#define ARENA_MINIMUM_COLLECTABLE_SIZE ((Size)1000000)
/* ARENA_DEFAULT_COLLECTION_RATE is an estimate of the MPS's
- * collection rate (in work per second; see ), for
+ * collection rate (in work per second; see ), for
* use in the case where there isn't enough data to use a measured
* value. */
@@ -487,7 +487,7 @@
/* Currently StackProbe has a useful implementation only on Windows. */
#if defined(MPS_OS_W3) && !defined(CONFIG_PF_ANSI)
-/* See for a justification of this value. */
+/* See for a justification of this value. */
#define StackProbeDEPTH ((Size)500)
#else
#define StackProbeDEPTH ((Size)0)
@@ -601,7 +601,7 @@
#if defined(MPS_OS_LI) || defined(MPS_OS_FR)
/* PTHREADEXT_SIGSUSPEND -- signal used to suspend a thread
- * See
+ *
*/
#if defined(CONFIG_PTHREADEXT_SIGSUSPEND)
#define PTHREADEXT_SIGSUSPEND CONFIG_PTHREADEXT_SIGSUSPEND
@@ -610,7 +610,7 @@
#endif
/* PTHREADEXT_SIGRESUME -- signal used to resume a thread
- * See
+ *
*/
#if defined(CONFIG_PTHREADEXT_SIGRESUME)
#define PTHREADEXT_SIGRESUME CONFIG_PTHREADEXT_SIGRESUME
@@ -691,12 +691,12 @@
/* Write barrier deferral
*
- * See design.mps.write-barrier.deferral.
+ * .
*
* TODO: These settings were determined by trial and error, but should
* be based on measurement of the protection overhead on each
* platform. We know it's extremely different between macOS and
- * Windows, for example. See design.mps.write-barrier.improv.by-os.
+ * Windows, for example. .
*
* TODO: Consider basing the count on the amount of time that has
* passed in the mutator rather than the number of scans.
diff --git a/mps/code/dbgpool.c b/mps/code/dbgpool.c
index b2e7bdb433d..88dd9ddfc6b 100644
--- a/mps/code/dbgpool.c
+++ b/mps/code/dbgpool.c
@@ -4,7 +4,7 @@
* Copyright (c) 2001-2016 Ravenbrook Limited. See end of file for license.
* Portions copyright (C) 2002 Global Graphics Software.
*
- * .source: design.mps.object-debug
+ * .source:
*/
#include "dbgpool.h"
@@ -161,7 +161,7 @@ static Res DebugPoolInit(Pool pool, Arena arena, PoolClass klass, ArgList args)
/* fencepost init */
/* @@@@ This parses a user argument, options, so it should really */
/* go through the MPS interface. The template needs to be copied */
- /* into Addr memory, to avoid breaking . */
+ /* into Addr memory, to avoid breaking . */
debug->fenceSize = options->fenceSize;
if (debug->fenceSize != 0) {
/* Fenceposting turns on tagging */
diff --git a/mps/code/dbgpool.h b/mps/code/dbgpool.h
index 051582121b0..4762bc535e1 100644
--- a/mps/code/dbgpool.h
+++ b/mps/code/dbgpool.h
@@ -1,6 +1,6 @@
/* dbgpool.h: POOL DEBUG MIXIN
*
- * See .
+ * .
*
* $Id$
* Copyright (c) 2001-2014 Ravenbrook Limited. See end of file for license.
diff --git a/mps/code/dbgpooli.c b/mps/code/dbgpooli.c
index ebc8733e3c2..1d57c43487b 100644
--- a/mps/code/dbgpooli.c
+++ b/mps/code/dbgpooli.c
@@ -4,7 +4,7 @@
* Copyright (c) 2001 Ravenbrook Limited. See end of file for license.
* Portions copyright (C) 2002 Global Graphics Software.
*
- * .source:
+ * .source:
*/
#include "dbgpool.h"
@@ -21,7 +21,7 @@ void mps_pool_check_fenceposts(mps_pool_t mps_pool)
Pool pool = (Pool)mps_pool;
Arena arena;
- /* TESTT not AVERT, see .
+ * .design: .
*/
#ifndef event_h
diff --git a/mps/code/eventcom.h b/mps/code/eventcom.h
index 2e1479abf68..bbde88a72d4 100644
--- a/mps/code/eventcom.h
+++ b/mps/code/eventcom.h
@@ -15,7 +15,7 @@
#include "clock.h"
-/* Event Kinds --- see
+/* Event Kinds --- see
*
* All events are classified as being of one event type.
* They are small enough to be able to be used as members of a bit set.
diff --git a/mps/code/eventdef.h b/mps/code/eventdef.h
index 9189b50a2c2..437df41ac4a 100644
--- a/mps/code/eventdef.h
+++ b/mps/code/eventdef.h
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2001-2018 Ravenbrook Limited. See end of file for license.
*
- * .source:
+ * .source:
*
* .desc: This file declares macros that define the types of events and their
* properties.
@@ -52,7 +52,7 @@
* When you retire an event type, don't delete it from the list, but
* set the "Used" column to FALSE. This serves as documentation for
* what the event code means in older logs, and prevents the codes
- * being re-used. See .
+ * being re-used. .
*
* When you add an event type, you must also add an EVENT_*_PARAMS
* macro specifying its parameters.
diff --git a/mps/code/failover.c b/mps/code/failover.c
index fa48187cda9..0afc904841f 100644
--- a/mps/code/failover.c
+++ b/mps/code/failover.c
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2014 Ravenbrook Limited. See end of file for license.
*
- * .design:
+ * .design:
*
* .critical: In manual-allocation-bound programs using MVFF, many of
* these functions are on the critical paths via mps_alloc (and then
@@ -82,7 +82,7 @@ static Res failoverInsert(Range rangeReturn, Land land, Range range)
AVERT_CRITICAL(Range, range);
/* Provide more opportunities for coalescence. See
- * .
+ * .
*/
(void)LandFlush(fo->primary, fo->secondary);
@@ -104,7 +104,7 @@ static Res failoverInsertSteal(Range rangeReturn, Land land, Range rangeIO)
AVERT(Range, rangeIO);
/* Provide more opportunities for coalescence. See
- * .
+ * .
*/
(void)LandFlush(fo->primary, fo->secondary);
@@ -124,7 +124,7 @@ static Res failoverDelete(Range rangeReturn, Land land, Range range)
AVERT(Range, range);
/* Prefer efficient search in the primary. See
- * .
+ * .
*/
(void)LandFlush(fo->primary, fo->secondary);
@@ -144,7 +144,7 @@ static Res failoverDelete(Range rangeReturn, Land land, Range range)
/* Delete the whole of oldRange, and re-insert the fragments
* (which might end up in the secondary). See
- * .
+ * .
*/
res = LandDelete(&dummyRange, fo->primary, &oldRange);
if (res != ResOK)
@@ -191,7 +191,7 @@ static Res failoverDeleteSteal(Range rangeReturn, Land land, Range range)
AVERT(Range, range);
/* Prefer efficient search in the primary. See
- * .
+ * .
*/
(void)LandFlush(fo->primary, fo->secondary);
@@ -223,7 +223,7 @@ static Bool failoverFindFirst(Range rangeReturn, Range oldRangeReturn, Land land
AVER_CRITICAL(oldRangeReturn != NULL);
AVERT_CRITICAL(FindDelete, findDelete);
- /* See . */
+ /* . */
(void)LandFlush(fo->primary, fo->secondary);
return LandFindFirst(rangeReturn, oldRangeReturn, fo->primary, size, findDelete)
@@ -239,7 +239,7 @@ static Bool failoverFindLast(Range rangeReturn, Range oldRangeReturn, Land land,
AVER_CRITICAL(oldRangeReturn != NULL);
AVERT_CRITICAL(FindDelete, findDelete);
- /* See . */
+ /* . */
(void)LandFlush(fo->primary, fo->secondary);
return LandFindLast(rangeReturn, oldRangeReturn, fo->primary, size, findDelete)
@@ -255,7 +255,7 @@ static Bool failoverFindLargest(Range rangeReturn, Range oldRangeReturn, Land la
AVER_CRITICAL(oldRangeReturn != NULL);
AVERT_CRITICAL(FindDelete, findDelete);
- /* See . */
+ /* . */
(void)LandFlush(fo->primary, fo->secondary);
return LandFindLargest(rangeReturn, oldRangeReturn, fo->primary, size, findDelete)
@@ -276,7 +276,7 @@ static Bool failoverFindInZones(Bool *foundReturn, Range rangeReturn, Range oldR
/* AVERT_CRITICAL(ZoneSet, zoneSet); */
AVERT_CRITICAL(Bool, high);
- /* See . */
+ /* . */
(void)LandFlush(fo->primary, fo->secondary);
res = LandFindInZones(&found, rangeReturn, oldRangeReturn, fo->primary, size, zoneSet, high);
diff --git a/mps/code/failover.h b/mps/code/failover.h
index a74ab69a1fb..787c1fbebcf 100644
--- a/mps/code/failover.h
+++ b/mps/code/failover.h
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2014 Ravenbrook Limited. See end of file for license.
*
- * .source: .
+ * .source: .
*/
#ifndef failover_h
diff --git a/mps/code/finalcv.c b/mps/code/finalcv.c
index 1871141bbdf..150e46ea858 100644
--- a/mps/code/finalcv.c
+++ b/mps/code/finalcv.c
@@ -6,7 +6,7 @@
*
* DESIGN
*
- * See .
+ * .
*
* DEPENDENCIES
*
@@ -132,7 +132,7 @@ static void test(mps_arena_t arena, mps_pool_class_t pool_class)
die(mps_ap_create(&ap, pool, mps_rank_exact()), "ap_create\n");
/* Make registered-for-finalization objects. */
- /* */
+ /* */
for(i = 0; i < rootCOUNT; ++i) {
do {
MPS_RESERVE_BLOCK(e, p, ap, vectorSIZE);
@@ -155,7 +155,7 @@ static void test(mps_arena_t arena, mps_pool_class_t pool_class)
mps_message_type_enable(arena, mps_message_type_finalization());
mps_message_type_enable(arena, mps_message_type_gc());
- /* */
+ /* */
while (finalizations < finalizationCOUNT && collections < collectionCOUNT) {
mps_message_type_t type;
@@ -163,7 +163,7 @@ static void test(mps_arena_t arena, mps_pool_class_t pool_class)
churn(ap);
/* Maybe make some objects ready-to-finalize */
- /* */
+ /* */
for (i = 0; i < rootCOUNT; ++i) {
if (root[i] != NULL && state[i] == rootSTATE) {
if (rnd() % finalizationRATE == 0) {
@@ -192,7 +192,7 @@ static void test(mps_arena_t arena, mps_pool_class_t pool_class)
mps_word_t objind;
mps_addr_t objaddr;
- /* */
+ /* */
cdie(0 == mps_message_clock(arena, message),
"message clock should be 0 (unset) for finalization messages");
mps_message_finalization_ref(&objaddr, arena, message);
@@ -200,7 +200,7 @@ static void test(mps_arena_t arena, mps_pool_class_t pool_class)
objind = dylan_int_int(obj[vectorSLOT]);
printf("Finalizing: object %"PRIuLONGEST" at %p\n",
(ulongest_t)objind, objaddr);
- /* */
+ /* */
cdie(root[objind] == NULL, "finalized live");
cdie(state[objind] == finalizableSTATE, "finalized dead");
state[objind] = finalizedSTATE;
diff --git a/mps/code/format.c b/mps/code/format.c
index b9c4a59fb14..ed76b3ce57a 100644
--- a/mps/code/format.c
+++ b/mps/code/format.c
@@ -182,7 +182,7 @@ void FormatDestroy(Format format)
/* FormatArena -- find the arena of a format
*
- * Must be thread-safe. See . */
+ * Must be thread-safe. . */
Arena FormatArena(Format format)
{
diff --git a/mps/code/freelist.c b/mps/code/freelist.c
index 2c02cd8e41d..27e62c81064 100644
--- a/mps/code/freelist.c
+++ b/mps/code/freelist.c
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2013-2015 Ravenbrook Limited. See end of file for license.
*
- * .sources: .
+ * .sources: .
*/
#include "freelist.h"
@@ -176,7 +176,7 @@ Bool FreelistCheck(Freelist fl)
CHECKL(AlignCheck(FreelistMinimumAlignment));
CHECKL(sizeof(struct FreelistBlockSmall) < sizeof(struct FreelistBlockLarge));
CHECKL(sizeof(struct FreelistBlockSmall) <= freelistAlignment(fl));
- /* See */
+ /* */
CHECKL(AlignIsAligned(freelistAlignment(fl), FreelistMinimumAlignment));
CHECKL((fl->list == freelistEND) == (fl->listSize == 0));
CHECKL((fl->list == freelistEND) == (fl->size == 0));
@@ -197,7 +197,7 @@ static Res freelistInit(Land land, Arena arena, Align alignment, ArgList args)
return res;
fl = CouldBeA(Freelist, land);
- /* See */
+ /* */
AVER(AlignIsAligned(LandAlignment(land), FreelistMinimumAlignment));
fl->list = freelistEND;
@@ -254,7 +254,7 @@ static void freelistBlockSetPrevNext(Freelist fl, FreelistBlock prev,
if (prev == freelistEND) {
fl->list = next;
} else {
- /* Isolated range invariant (design.mps.freelist.impl.invariant). */
+ /* Isolated range invariant . */
AVER(next == freelistEND
|| freelistBlockLimit(fl, prev) < freelistBlockBase(next));
freelistBlockSetNext(prev, next);
@@ -291,7 +291,7 @@ static Res freelistInsert(Range rangeReturn, Land land, Range range)
break;
next = freelistBlockNext(cur);
if (next != freelistEND)
- /* Isolated range invariant (design.mps.freelist.impl.invariant). */
+ /* Isolated range invariant . */
AVER(freelistBlockLimit(fl, cur) < freelistBlockBase(next));
prev = cur;
cur = next;
diff --git a/mps/code/freelist.h b/mps/code/freelist.h
index 6b84564e0ab..6fafa812bef 100644
--- a/mps/code/freelist.h
+++ b/mps/code/freelist.h
@@ -3,7 +3,7 @@
* $Id$
* Copyright (c) 2013-2014 Ravenbrook Limited. See end of file for license.
*
- * .source: .
+ * .source: .
*/
#ifndef freelist_h
@@ -19,7 +19,7 @@ typedef struct FreelistStruct *Freelist;
extern Bool FreelistCheck(Freelist freelist);
-/* See */
+/* */
#define FreelistMinimumAlignment ((Align)sizeof(FreelistBlock))
DECLARE_CLASS(Land, Freelist, Land);
diff --git a/mps/code/global.c b/mps/code/global.c
index 42269f565f1..e111c964ae3 100644
--- a/mps/code/global.c
+++ b/mps/code/global.c
@@ -4,7 +4,7 @@
* Copyright (c) 2001-2018 Ravenbrook Limited. See end of file for license.
* Portions copyright (C) 2002 Global Graphics Software.
*
- * .sources: See . design.mps.thread-safety is relevant
+ * .sources: . is relevant
* to the functions ArenaEnter and ArenaLeave in this file.
*
*
@@ -12,10 +12,10 @@
*
* .static: Static data is used in ArenaAccess (in order to find the
* appropriate arena) and GlobalsInit. It's checked in GlobalsCheck.
- * See .
+ * .
*
* .non-mod: The Globals structure has many fields which properly belong
- * to other modules (see ); GlobalsInit contains code which
+ * to other modules ; GlobalsInit contains code which
* breaks the usual module abstractions. Such instances are documented
* with a tag to the relevant module implementation. Most of the
* functions should be in some other module, they just ended up here by
@@ -31,15 +31,15 @@ SRCID(global, "$Id$");
/* All static data objects are declared here. See .static */
-/* */
+/* */
static Bool arenaRingInit = FALSE;
-static RingStruct arenaRing; /* */
-static Serial arenaSerial; /* */
+static RingStruct arenaRing; /* */
+static Serial arenaSerial; /* */
/* arenaClaimRingLock, arenaReleaseRingLock -- lock/release the arena ring
*
- * See . */
+ * . */
static void arenaClaimRingLock(void)
{
@@ -53,7 +53,7 @@ static void arenaReleaseRingLock(void)
/* GlobalsClaimAll -- claim all MPS locks
- *
+ *
*/
void GlobalsClaimAll(void)
@@ -64,7 +64,7 @@ void GlobalsClaimAll(void)
}
/* GlobalsReleaseAll -- release all MPS locks. GlobalsClaimAll must
- * previously have been called. */
+ * previously have been called. */
void GlobalsReleaseAll(void)
{
@@ -84,7 +84,7 @@ static void arenaReinitLock(Arena arena)
/* GlobalsReinitializeAll -- reinitialize all MPS locks, and leave the
* shield for all arenas. GlobalsClaimAll must previously have been
- * called. */
+ * called. */
void GlobalsReinitializeAll(void)
{
@@ -127,7 +127,7 @@ static void arenaDenounce(Arena arena)
AVERT(Arena, arena);
/* Temporarily give up the arena lock to avoid deadlock, */
- /* see . */
+ /* see . */
ArenaLeave(arena);
/* Detach the arena from the global list. */
@@ -214,14 +214,14 @@ Bool GlobalsCheck(Globals arenaGlobals)
CHECKL(TraceSetSuper(arena->busyTraces, arena->flippedTraces));
TRACE_SET_ITER(ti, trace, TraceSetUNIV, arena)
- /* */
+ /* */
if (TraceSetIsMember(arena->busyTraces, trace)) {
CHECKD(Trace, trace);
} else {
- /* */
+ /* */
CHECKL(trace->sig == SigInvalid);
}
- /* */
+ /* */
CHECKL(TraceIdMessagesCheck(arena, ti));
TRACE_SET_ITER_END(ti, trace, TraceSetUNIV, arena);
@@ -236,7 +236,7 @@ Bool GlobalsCheck(Globals arenaGlobals)
/* can't write a check for arena->epoch */
CHECKD(History, ArenaHistory(arena));
- /* we also check the statics now. */
+ /* we also check the statics now. */
CHECKL(BoolCheck(arenaRingInit));
/* Can't CHECKD_NOSIG here because &arenaRing is never NULL and GCC
* will warn about a constant comparison. */
@@ -272,7 +272,7 @@ Res GlobalsInit(Globals arenaGlobals)
/* Ensure static things are initialized. */
if (!arenaRingInit) {
/* there isn't an arena ring yet */
- /* */
+ /* */
arenaRingInit = TRUE;
RingInit(&arenaRing);
arenaSerial = (Serial)0;
@@ -336,11 +336,11 @@ Res GlobalsInit(Globals arenaGlobals)
ShieldInit(ArenaShield(arena));
for (ti = 0; ti < TraceLIMIT; ++ti) {
- /* */
+ /* */
arena->trace[ti].sig = SigInvalid;
/* ti must be valid so that TraceSetIsMember etc. always work */
arena->trace[ti].ti = ti;
- /* */
+ /* */
arena->tsMessage[ti] = NULL;
arena->tMessage[ti] = NULL;
}
@@ -379,7 +379,7 @@ Res GlobalsCompleteCreate(Globals arenaGlobals)
AVERT(Globals, arenaGlobals);
arena = GlobalsArena(arenaGlobals);
- /* initialize the message stuff, */
+ /* initialize the message stuff, */
{
void *v;
@@ -391,7 +391,7 @@ Res GlobalsCompleteCreate(Globals arenaGlobals)
}
TRACE_SET_ITER(ti, trace, TraceSetUNIV, arena)
- /* */
+ /* */
res = TraceIdMessagesCreate(arena, ti);
if(res != ResOK)
return res;
@@ -494,7 +494,7 @@ void GlobalsPrepareToDestroy(Globals arenaGlobals)
arenaGlobals->lock = NULL;
TRACE_SET_ITER(ti, trace, TraceSetUNIV, arena)
- /* */
+ /* */
TraceIdMessagesDestroy(arena, ti);
TRACE_SET_ITER_END(ti, trace, TraceSetUNIV, arena);
@@ -518,7 +518,7 @@ void GlobalsPrepareToDestroy(Globals arenaGlobals)
arena->enabledMessageTypes = NULL;
}
- /* destroy the final pool (see