#1229 fix sharetable update (#1230)

Co-authored-by: zixun <lvzxiun@gmail.com>
This commit is contained in:
子熏
2020-08-07 16:46:49 +08:00
committed by GitHub
parent ddedffc753
commit c35c8f173b

View File

@@ -257,8 +257,7 @@ local function resolve_replace(replace_map)
end end
local function match_value(v) local function match_value(v)
assert(v ~= nil) if v == nil or record_map[v] or is_sharedtable(v) then
if record_map[v] or is_sharedtable(v) then
return return
end end
@@ -385,13 +384,12 @@ local function resolve_replace(replace_map)
match_funcinfo(info) match_funcinfo(info)
end end
local stack_values_tmp = {}
local function match_thread(co, level) local function match_thread(co, level)
-- match stackvalues -- match stackvalues
local n = stackvalues(co, stack_values_tmp) local values = {}
local n = stackvalues(co, values)
for i=1,n do for i=1,n do
local v = stack_values_tmp[i] local v = values[i]
stack_values_tmp[i] = nil
match_value(v) match_value(v)
end end