aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-10 18:16:57 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-10 18:16:57 +0200
commit7d31e295dc782afc92f3215d1571e629a5407fbf (patch)
tree2be6f774be1b41f65dd4e8c015712dacee42c21b /src/lanes.lua
parentae582acdb1bfb3fb4171682b884545d174e95aa9 (diff)
downloadlanes-7d31e295dc782afc92f3215d1571e629a5407fbf.tar.gz
lanes-7d31e295dc782afc92f3215d1571e629a5407fbf.tar.bz2
lanes-7d31e295dc782afc92f3215d1571e629a5407fbf.zip
Removed .demote_full_userdata
Diffstat (limited to 'src/lanes.lua')
-rw-r--r--src/lanes.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lanes.lua b/src/lanes.lua
index 92e773a..1378412 100644
--- a/src/lanes.lua
+++ b/src/lanes.lua
@@ -92,7 +92,6 @@ local default_params =
92{ 92{
93 -- LuaJIT provides a thread-unsafe allocator by default, so we need to protect it when used in parallel lanes 93 -- LuaJIT provides a thread-unsafe allocator by default, so we need to protect it when used in parallel lanes
94 allocator = isLuaJIT and "protected" or nil, 94 allocator = isLuaJIT and "protected" or nil,
95 demote_full_userdata = nil,
96 -- it looks also like LuaJIT allocator may not appreciate direct use of its allocator for other purposes than the VM operation 95 -- it looks also like LuaJIT allocator may not appreciate direct use of its allocator for other purposes than the VM operation
97 internal_allocator = isLuaJIT and "libc" or "allocator", 96 internal_allocator = isLuaJIT and "libc" or "allocator",
98 keepers_gc_threshold = -1, 97 keepers_gc_threshold = -1,
@@ -119,7 +118,6 @@ local param_checkers =
119 -- can be nil, "protected", or a function 118 -- can be nil, "protected", or a function
120 return val_ and (type(val_) == "function" or val_ == "protected") or true 119 return val_ and (type(val_) == "function" or val_ == "protected") or true
121 end, 120 end,
122 demote_full_userdata = boolean_param_checker,
123 internal_allocator = function(val_) 121 internal_allocator = function(val_)
124 -- can be "libc" or "allocator" 122 -- can be "libc" or "allocator"
125 return val_ == "libc" or val_ == "allocator" 123 return val_ == "libc" or val_ == "allocator"