From 95ca27b5658c9b4da4ec67f6e922ff370eae05e5 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 3 Aug 2017 11:52:14 +0200 Subject: Fix error when using strict checking --- src/lanes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lanes.lua b/src/lanes.lua index 35071ae..09603b3 100644 --- a/src/lanes.lua +++ b/src/lanes.lua @@ -77,7 +77,7 @@ lanes.configure = function( settings_) demote_full_userdata = nil, verbose_errors = false, -- LuaJIT provides a thread-unsafe allocator by default, so we need to protect it when used in parallel lanes - protect_allocator = (jit and jit.version) and true or false + protect_allocator = (package.loaded.jit and jit.version) and true or false } local boolean_param_checker = function( val_) -- non-'boolean-false' should be 'boolean-true' or nil -- cgit v1.2.3-55-g6feb