diff options
| author | Richard Kistruck | 2007-01-16 14:04:17 +0000 |
|---|---|---|
| committer | Richard Kistruck | 2007-01-16 14:04:17 +0000 |
| commit | 9055b2277641eadd6d665de31b17db0a1f6d441c (patch) | |
| tree | 84e33fbb1f9a746364310ac616dccd6a1b4cfa7c /mps/code | |
| parent | 59c81be6abebd054a78adee4328b09fdffac41d5 (diff) | |
| download | emacs-9055b2277641eadd6d665de31b17db0a1f6d441c.tar.gz emacs-9055b2277641eadd6d665de31b17db0a1f6d441c.zip | |
Mps poolamc.c: (source only) clarify that commented-out code in amcwhiten is merely a comment; remove tabs.
Copied from Perforce
Change: 161483
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/poolamc.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mps/code/poolamc.c b/mps/code/poolamc.c index 2a1720ebbc0..df0716571cb 100644 --- a/mps/code/poolamc.c +++ b/mps/code/poolamc.c | |||
| @@ -1059,14 +1059,18 @@ static Res AMCWhiten(Pool pool, Trace trace, Seg seg) | |||
| 1059 | AVER(BufferIsReady(buffer)); | 1059 | AVER(BufferIsReady(buffer)); |
| 1060 | BufferDetach(buffer, pool); | 1060 | BufferDetach(buffer, pool); |
| 1061 | } else { /* mutator buffer */ | 1061 | } else { /* mutator buffer */ |
| 1062 | if (BufferScanLimit(buffer) == SegBase(seg)) | 1062 | if (BufferScanLimit(buffer) == SegBase(seg)) { |
| 1063 | /* There's nothing but the buffer, don't condemn. */ | 1063 | /* There's nothing but the buffer, don't condemn. */ |
| 1064 | return ResOK; | 1064 | return ResOK; |
| 1065 | else /* if (BufferScanLimit(buffer) == BufferLimit(buffer)) { */ | 1065 | } |
| 1066 | /* [The following else-if section is just a comment added in */ | ||
| 1067 | /* 1998-10-08. It has never worked. RHSK 2007-01-16] */ | ||
| 1068 | /* else if (BufferScanLimit(buffer) == BufferLimit(buffer)) { */ | ||
| 1066 | /* The buffer is full, so it won't be used by the mutator. */ | 1069 | /* The buffer is full, so it won't be used by the mutator. */ |
| 1067 | /* @@@@ We should detach it, but can't for technical reasons. */ | 1070 | /* @@@@ We should detach it, but can't for technical reasons. */ |
| 1068 | /* BufferDetach(buffer, pool); */ | 1071 | /* BufferDetach(buffer, pool); */ |
| 1069 | /* } else */ { | 1072 | /* } */ |
| 1073 | else { | ||
| 1070 | /* There is an active buffer, make sure it's nailed. */ | 1074 | /* There is an active buffer, make sure it's nailed. */ |
| 1071 | if (!amcSegHasNailboard(seg)) { | 1075 | if (!amcSegHasNailboard(seg)) { |
| 1072 | if (SegNailed(seg) == TraceSetEMPTY) { | 1076 | if (SegNailed(seg) == TraceSetEMPTY) { |
| @@ -1093,8 +1097,8 @@ static Res AMCWhiten(Pool pool, Trace trace, Seg seg) | |||
| 1093 | } | 1097 | } |
| 1094 | /* We didn't condemn the buffer, subtract it from the count. */ | 1098 | /* We didn't condemn the buffer, subtract it from the count. */ |
| 1095 | /* @@@@ We could subtract all the nailed grains. */ | 1099 | /* @@@@ We could subtract all the nailed grains. */ |
| 1096 | /* Relies on unsigned arithmetic wrapping round */ | 1100 | /* Relies on unsigned arithmetic wrapping round */ |
| 1097 | /* on under- and overflow (which it does). */ | 1101 | /* on under- and overflow (which it does). */ |
| 1098 | trace->condemned -= AddrOffset(BufferScanLimit(buffer), | 1102 | trace->condemned -= AddrOffset(BufferScanLimit(buffer), |
| 1099 | BufferLimit(buffer)); | 1103 | BufferLimit(buffer)); |
| 1100 | } | 1104 | } |