Skip to content

Commit ed05ae9

Browse files
committed
fixup! fixup! fixup! fixup! fixup! TEMP Optimizations
1 parent 0968b41 commit ed05ae9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sch/Sch.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,8 +1622,6 @@ function do_task(to_proc, task::TaskSpec)
16221622
# Execute
16231623
execute!(to_proc, f, fetched_args...; fetched_kwargs...)
16241624
end
1625-
empty!(fetched_args)
1626-
empty!(fetched_kwargs)
16271625

16281626
# Check if result is safe to store
16291627
# FIXME: Move here and below *after* timespan_finish for :compute
@@ -1652,6 +1650,9 @@ function do_task(to_proc, task::TaskSpec)
16521650
catch ex
16531651
bt = catch_backtrace()
16541652
RemoteException(myid(), CapturedException(ex, bt))
1653+
finally
1654+
empty!(fetched_args)
1655+
empty!(fetched_kwargs)
16551656
end
16561657

16571658
threadtime = cputhreadtime() - threadtime_start

0 commit comments

Comments
 (0)