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:
parent
ffbe7beaa5
commit
b4db3bd09f
9 changed files with 62 additions and 48 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue