1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 18:41:25 -08:00

Introduce new type work representing a measure of work done by the collector. use this systematically to make the code clearer.

Copied from Perforce
 Change: 188210
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2015-09-03 13:01:55 +01:00
parent ffbe7beaa5
commit b4db3bd09f
9 changed files with 62 additions and 48 deletions

View file

@ -486,7 +486,7 @@ typedef struct TraceStruct {
Size condemned; /* condemned bytes */
Size notCondemned; /* collectable but not condemned */
Size foundation; /* initial grey set size */
Size rate; /* segs to scan per increment */
Work quantumWork; /* collection work constituting a quantum */
STATISTIC_DECL(Count greySegCount); /* number of grey segs */
STATISTIC_DECL(Count greySegMax); /* max number of grey segs */
STATISTIC_DECL(Count rootScanCount); /* number of roots scanned */
@ -777,7 +777,7 @@ typedef struct mps_arena_s {
TraceMessage tMessage[TraceLIMIT]; /* <design/message-gc/> */
/* policy fields */
double tracedSize;
double tracedWork;
double tracedTime;
Clock lastWorldCollect;