MPS issue job003930

TitleUnnamed constants in arenaShouldCollectWorld
Statusclosed
Prioritynice
Assigned userGareth Rees
OrganizationRavenbrook
DescriptionarenaShouldCollectWorld [1] has six unnamed constants:

    if (arenaSize > 1000000) {
    if ((arena->tracedSize > 1000000.0) &&
    (arena->tracedTime > 1.0))
    scanRate = 25000000.0; /* a reasonable default. */
    arenaScanTime += 0.1; /* for overheads. */
    sinceLastWorldCollect > arenaScanTime * 10.0) {
AnalysisThese need names and moving to config.h.
How foundinspection
Evidence[1] http://www.ravenbrook.com/project/mps/master/code/global.c#line-762
Created byGareth Rees
Created on2015-08-21 14:31:58
Last modified byGareth Rees
Last modified on2015-08-21 15:27:14
History2015-08-21 GDR Created.

Fixes

Change Effect Date User Description
188160 closed 2015-08-21 15:27:14 Gareth Rees New function PolicyCollectionTime estimates the time needed to collect the arena. Mysterious constants are given names and moved to config.h.