diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-07 15:45:11 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-07 15:45:11 -0300 |
| commit | 925fe8a0f2a667c96c015ee74d1a702af9ea5507 (patch) | |
| tree | bca1cb92e11218498f4c76f651f4a5fa1a8c87b5 /lstate.h | |
| parent | 789e7acdea3ada96bd00b7aac6d82e805bfee85c (diff) | |
| download | lua-925fe8a0f2a667c96c015ee74d1a702af9ea5507.tar.gz lua-925fe8a0f2a667c96c015ee74d1a702af9ea5507.tar.bz2 lua-925fe8a0f2a667c96c015ee74d1a702af9ea5507.zip | |
First criteria for shifts minor<->major
Diffstat (limited to 'lstate.h')
| -rw-r--r-- | lstate.h | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -264,16 +264,17 @@ typedef struct global_State { | |||
| 264 | TValue l_registry; | 264 | TValue l_registry; |
| 265 | TValue nilvalue; /* a nil value */ | 265 | TValue nilvalue; /* a nil value */ |
| 266 | unsigned int seed; /* randomized seed for hashes */ | 266 | unsigned int seed; /* randomized seed for hashes */ |
| 267 | unsigned short gcpgenminormul; /* control minor generational collections */ | ||
| 268 | unsigned short gcpmajorminor; /* control shift major->minor */ | ||
| 269 | unsigned short gcpminormajor; /* control shift minor->major */ | ||
| 270 | unsigned short gcpgcpause; /* size of pause between successive GCs */ | ||
| 271 | unsigned short gcpgcstepmul; /* GC "speed" */ | ||
| 267 | lu_byte currentwhite; | 272 | lu_byte currentwhite; |
| 268 | lu_byte gcstate; /* state of garbage collector */ | 273 | lu_byte gcstate; /* state of garbage collector */ |
| 269 | lu_byte gckind; /* kind of GC running */ | 274 | lu_byte gckind; /* kind of GC running */ |
| 270 | lu_byte gcstopem; /* stops emergency collections */ | 275 | lu_byte gcstopem; /* stops emergency collections */ |
| 271 | lu_byte genminormul; /* control for minor generational collections */ | ||
| 272 | lu_byte genmajormul; /* control for major generational collections */ | ||
| 273 | lu_byte gcstp; /* control whether GC is running */ | 276 | lu_byte gcstp; /* control whether GC is running */ |
| 274 | lu_byte gcemergency; /* true if this is an emergency collection */ | 277 | lu_byte gcemergency; /* true if this is an emergency collection */ |
| 275 | lu_byte gcpause; /* size of pause between successive GCs */ | ||
| 276 | lu_byte gcstepmul; /* GC "speed" */ | ||
| 277 | lu_byte gcstepsize; /* (log2 of) GC granularity */ | 278 | lu_byte gcstepsize; /* (log2 of) GC granularity */ |
| 278 | GCObject *allgc; /* list of all collectable objects */ | 279 | GCObject *allgc; /* list of all collectable objects */ |
| 279 | GCObject **sweepgc; /* current position of sweep in list */ | 280 | GCObject **sweepgc; /* current position of sweep in list */ |
