diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-08-03 13:22:57 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-08-03 13:22:57 -0300 |
commit | b9b554e0f68726b19274209ea6ce910b7e9f5fbf (patch) | |
tree | 5e0b126da4447bcb7bdfc80821d209dc86584a9e /ltests.h | |
parent | 0dc5deca1c0182a4a3db2fcfd7bc721f27fb352b (diff) | |
download | lua-b9b554e0f68726b19274209ea6ce910b7e9f5fbf.tar.gz lua-b9b554e0f68726b19274209ea6ce910b7e9f5fbf.tar.bz2 lua-b9b554e0f68726b19274209ea6ce910b7e9f5fbf.zip |
Clearer handling of gray lists when entering generational mode
When entering generational mode, all objects are old. So, the only
objects that need to be in a gray list are threads, which can be
assigned without barriers. Changes in anything else (e.g., weak
tables) will trigger barriers that, if needed, will add the object
to a gray list.
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -51,6 +51,7 @@ | |||
51 | 51 | ||
52 | /* memory-allocator control variables */ | 52 | /* memory-allocator control variables */ |
53 | typedef struct Memcontrol { | 53 | typedef struct Memcontrol { |
54 | int failnext; | ||
54 | unsigned long numblocks; | 55 | unsigned long numblocks; |
55 | unsigned long total; | 56 | unsigned long total; |
56 | unsigned long maxmem; | 57 | unsigned long maxmem; |