mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-09 21:20:45 -08:00
Mps unfixed-summary branch: trivial integs from master
Copied from Perforce Change: 161484 ServerID: perforce.ravenbrook.com
This commit is contained in:
commit
fecc15e861
3 changed files with 11 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* fmtdytst.h: DYLAN OBJECT FORMAT TESTING
|
||||
*
|
||||
* $Id: //info.ravenbrook.com/project/mps/master/code/fmtdy.h#7 $
|
||||
* $Id$
|
||||
* Copyright (c) 2001 Ravenbrook Limited. See end of file for license.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* protxcpp.c: PROTECTION FOR MAC OS X ON POWERPC
|
||||
*
|
||||
* $Header$
|
||||
* $Id$
|
||||
* Copyright (c) 2001,2005 Ravenbrook Limited. See end of file for license.
|
||||
*
|
||||
* Most of this was copied from protso.c and modified.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue