mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-28 07:50:48 -08:00
Fix issues identified in review by dl.
Copied from Perforce Change: 194184
This commit is contained in:
parent
84754cec52
commit
2f4affed50
2 changed files with 9 additions and 9 deletions
|
|
@ -770,8 +770,8 @@ static Res awlSegWhiten(Seg seg, Trace trace)
|
|||
|
||||
/* awlSegGreyen -- Greyen method for AWL segments */
|
||||
|
||||
/* awlsegRangeGreyen -- subroutine for awlSegGreyen */
|
||||
static void awlsegRangeGreyen(AWLSeg awlseg, Index base, Index limit)
|
||||
/* awlSegRangeGreyen -- subroutine for awlSegGreyen */
|
||||
static void awlSegRangeGreyen(AWLSeg awlseg, Index base, Index limit)
|
||||
{
|
||||
/* AWLSeg not checked as that's already been done */
|
||||
AVER(limit <= awlseg->grains);
|
||||
|
|
@ -801,14 +801,14 @@ static void awlSegGreyen(Seg seg, Trace trace)
|
|||
if (SegBuffer(&buffer, seg)) {
|
||||
Addr base = SegBase(seg);
|
||||
|
||||
awlsegRangeGreyen(awlseg,
|
||||
awlSegRangeGreyen(awlseg,
|
||||
0,
|
||||
PoolIndexOfAddr(base, pool, BufferScanLimit(buffer)));
|
||||
awlsegRangeGreyen(awlseg,
|
||||
awlSegRangeGreyen(awlseg,
|
||||
PoolIndexOfAddr(base, pool, BufferLimit(buffer)),
|
||||
awlseg->grains);
|
||||
} else {
|
||||
awlsegRangeGreyen(awlseg, 0, awlseg->grains);
|
||||
awlSegRangeGreyen(awlseg, 0, awlseg->grains);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -298,10 +298,10 @@ references in them. This method is called via the generic function
|
|||
|
||||
_`.method.fix`: The ``fix`` method indicates that the reference
|
||||
``*refIO`` has been discovered at rank ``ss->rank`` by the traces in
|
||||
``ss->traces``, and the sgment must handle this discovery according to
|
||||
the fix protocol (design.mps.fix_). If the method moves the object, it
|
||||
must update ``*refIO`` to refer to the new location of the object. If
|
||||
the method determines that the referenced object died (for example,
|
||||
``ss->traces``, and the segment must handle this discovery according
|
||||
to the fix protocol (design.mps.fix_). If the method moves the object,
|
||||
it must update ``*refIO`` to refer to the new location of the object.
|
||||
If the method determines that the referenced object died (for example,
|
||||
because the highest-ranking references to the object were weak), it
|
||||
must update ``*refIO`` to ``NULL``. Segment classes that automatically
|
||||
reclaim dead objects must provide this method, and pools that use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue