Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/batch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ end
free_threads!(torelease_tuple)
$ret_quote
end
gcpr = Expr(:gc_preserve, block, :cfunc)
# argtup can be a mutable memory allocation and `batch_closure` will not gurantuee preservation
gcpr = Expr(:gc_preserve, block, :cfunc, :argtup)
argt = Expr(:tuple)
for k ∈ 1:K
add_var!(q, argt, gcpr, args[k], :args, :gcp, k)
Expand Down
Loading