aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-08-03 13:22:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-08-03 13:22:57 -0300
commitb9b554e0f68726b19274209ea6ce910b7e9f5fbf (patch)
tree5e0b126da4447bcb7bdfc80821d209dc86584a9e /ltests.h
parent0dc5deca1c0182a4a3db2fcfd7bc721f27fb352b (diff)
downloadlua-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ltests.h b/ltests.h
index 1a2d8d28..e9219e29 100644
--- a/ltests.h
+++ b/ltests.h
@@ -51,6 +51,7 @@
51 51
52/* memory-allocator control variables */ 52/* memory-allocator control variables */
53typedef struct Memcontrol { 53typedef 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;