Skip to content

Commit 284a374

Browse files
committed
ThreadProc: Mark task sticky
1 parent 85637c0 commit 284a374

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/processor.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ function execute!(proc::ThreadProc, @nospecialize(f), @nospecialize(args...))
159159
TimespanLogging.prof_task_put!(tls.sch_handle.thunk_id.id)
160160
f(args...)
161161
end
162+
task.sticky = true
162163
ret = ccall(:jl_set_task_tid, Cint, (Any, Cint), task, proc.tid-1)
163164
if ret == 0
164165
error("jl_set_task_tid == 0")

0 commit comments

Comments
 (0)