MPS issue job001688

TitleAMC repeatedly allocates and initialises identical SegPrefs
Statusclosed
Prioritynice
Assigned userRichard Brooksby
OrganizationRavenbrook
DescriptionAMC repeatedly allocates and initialises identical SegPrefs.

AMCBufferFill, which allocates segments for new buffers, allocates a
fresh SegPref every time. This is not necessary because for a given
generation the SegPref is always the same.

This is a problem because: it's a bit inefficient (though I doubt we
could measure it); the code gives the wrong impression (it gives the
impression that the SegPref might dynamically vary, which it doesn't,
by design).
AnalysisThe SegPref can be allocated (and appropriately initialised) once, and
associated (for example, stored in) the PoolGen.
How foundunknown
Evidence[1] AMCBufferFill in <http://www.ravenbrook.com/project/mps/master/code/poolamc.c>
Observed in1.108.0
Created byDavid Jones
Created on2007-07-20 16:29:15
Last modified byGareth Rees
Last modified on2014-04-10 15:41:35
History2007-07-20 DRJ Created.
2013-03-19 GDR Assigned to RB.
2013-06-16 RB Downgraded to "nice" as this isn't affecting anyone (see job003499).

Fixes

Change Effect Date User Description
184342 closed 2014-02-14 15:15:07 Richard Brooksby Merging branch //info.ravenbrook.com/project/mps/branch/2014-01-29/mps-chain-zones/... into master.