aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/shield.c
diff options
context:
space:
mode:
authorNick Barnes2001-12-17 15:18:17 +0000
committerNick Barnes2001-12-17 15:18:17 +0000
commitdb4b3a6fa51ea452f62ed64612da5466d7bc292e (patch)
tree4401c0c97d4df2e1c48ad06f263c27199e92d5dc /mps/code/shield.c
parentc864931fe4271b6592ca4a76ce856938d263c74a (diff)
downloademacs-db4b3a6fa51ea452f62ed64612da5466d7bc292e.tar.gz
emacs-db4b3a6fa51ea452f62ed64612da5466d7bc292e.zip
Remove trailing whitespace.
Copied from Perforce Change: 25309 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/shield.c')
-rw-r--r--mps/code/shield.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mps/code/shield.c b/mps/code/shield.c
index 17195fdfcf2..7e1fe864f00 100644
--- a/mps/code/shield.c
+++ b/mps/code/shield.c
@@ -16,20 +16,20 @@
16 * .def.synced: a seg is synced if the prot and shield modes are the 16 * .def.synced: a seg is synced if the prot and shield modes are the
17 * same, and unsynced otherwise. 17 * same, and unsynced otherwise.
18 * .def.depth: the depth of a segment is defined as 18 * .def.depth: the depth of a segment is defined as
19 * depth == #exposes - #covers + I(in cache), where 19 * depth == #exposes - #covers + #(in cache), where
20 * #exposes = the total number of times the seg has been exposed 20 * #exposes = the total number of times the seg has been exposed
21 * #covers = the total number of times the seg has been covered 21 * #covers = the total number of times the seg has been covered
22 * I(in cache) = 1 if the segment is in the cache 22 * #(in cache) = the number of times the seg appears in the cache
23 * 0 otherwise 23 * The cache is initially empty and Cover should not be called
24 * The cache is initially empty and cover should not be called 24 * without a matching Expose, so this figure should always be
25 * without a matching expose, so this figure should always be
26 * non-negative. 25 * non-negative.
27 * .def.total.depth: The total depth is the sum of the depth over 26 * .def.total.depth: The total depth is the sum of the depth over
28 * all segments 27 * all segments
29 * .def.outside: being outside the shield is being between calls 28 * .def.outside: being outside the shield is being between calls
30 * to leave and enter, and similarly .def.inside: being inside the 29 * to leave and enter, and similarly .def.inside: being inside the
31 * shield is being between calls to enter and leave. 30 * shield is being between calls to enter and leave.
32 * .def.suspended: suspended is true iff the threads are suspended 31 * .def.suspended: suspended is true iff the mutator is suspended.
32 * .def.shielded: a segment is shielded if the shield mode is non-zero.
33 * 33 *
34 * 34 *
35 * Properties 35 * Properties
@@ -46,7 +46,7 @@
46 * 46 *
47 * These invariants are maintained by the code. 47 * These invariants are maintained by the code.
48 * 48 *
49 * .inv.outside.running: The mutator is running while outside the 49 * .inv.outside.running: The mutator is not suspended while outside the
50 * shield. 50 * shield.
51 * .inv.unsynced.suspended: If any segment is not synced, 51 * .inv.unsynced.suspended: If any segment is not synced,
52 * the mutator is suspended. 52 * the mutator is suspended.
@@ -62,7 +62,7 @@
62 * As the depth of a segment cannot be negative 62 * As the depth of a segment cannot be negative
63 * total depth == 0 => for all segments, depth == 0 63 * total depth == 0 => for all segments, depth == 0
64 * => all segs are synced (by .inv.unsynced.depth) 64 * => all segs are synced (by .inv.unsynced.depth)
65 * 65 *
66 * If the mutator is running then all segs must be synced 66 * If the mutator is running then all segs must be synced
67 * (.inv.unsynced.suspend). Which means that the hardware protection 67 * (.inv.unsynced.suspend). Which means that the hardware protection
68 * (prot mode) must reflect the software protection (shield mode). 68 * (prot mode) must reflect the software protection (shield mode).
@@ -140,7 +140,7 @@ static void flush(Arena arena, Size i)
140 AVER(SegDepth(seg) > 0); 140 AVER(SegDepth(seg) > 0);
141 --arena->shDepth; 141 --arena->shDepth;
142 SegSetDepth(seg, SegDepth(seg) - 1); 142 SegSetDepth(seg, SegDepth(seg) - 1);
143 143
144 if (SegDepth(seg) == 0) 144 if (SegDepth(seg) == 0)
145 sync(arena, seg); 145 sync(arena, seg);
146 146