1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-24 07:41:54 -07:00

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
This commit is contained in:
Richard Kistruck 2007-01-16 14:04:17 +00:00
parent f784088915
commit 8d0eb092d2

View file

@ -1059,14 +1059,18 @@ static Res AMCWhiten(Pool pool, Trace trace, Seg seg)
AVER(BufferIsReady(buffer));
BufferDetach(buffer, pool);
} else { /* mutator buffer */
if (BufferScanLimit(buffer) == SegBase(seg))
if (BufferScanLimit(buffer) == SegBase(seg)) {
/* There's nothing but the buffer, don't condemn. */
return ResOK;
else /* if (BufferScanLimit(buffer) == BufferLimit(buffer)) { */
}
/* [The following else-if section is just a comment added in */
/* 1998-10-08. It has never worked. RHSK 2007-01-16] */
/* else if (BufferScanLimit(buffer) == BufferLimit(buffer)) { */
/* The buffer is full, so it won't be used by the mutator. */
/* @@@@ We should detach it, but can't for technical reasons. */
/* BufferDetach(buffer, pool); */
/* } else */ {
/* } */
else {
/* There is an active buffer, make sure it's nailed. */
if (!amcSegHasNailboard(seg)) {
if (SegNailed(seg) == TraceSetEMPTY) {
@ -1093,8 +1097,8 @@ static Res AMCWhiten(Pool pool, Trace trace, Seg seg)
}
/* We didn't condemn the buffer, subtract it from the count. */
/* @@@@ We could subtract all the nailed grains. */
/* Relies on unsigned arithmetic wrapping round */
/* on under- and overflow (which it does). */
/* Relies on unsigned arithmetic wrapping round */
/* on under- and overflow (which it does). */
trace->condemned -= AddrOffset(BufferScanLimit(buffer),
BufferLimit(buffer));
}