Skip to content

Commit afad5f6

Browse files
vilterpKristofferC
authored andcommitted
add a GC safepoint in Task.wait (#41441)
(cherry picked from commit 97f817a)
1 parent cbb3367 commit afad5f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/task.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ end
818818
end
819819

820820
function wait()
821+
GC.safepoint()
821822
W = Workqueues[Threads.threadid()]
822823
poptask(W)
823824
result = try_yieldto(ensure_rescheduled)

0 commit comments

Comments
 (0)