@swift-ci please test
Explanation: Our os_signpost
code tries to peer through some wrapper functions when posting the address of the resume function. This change avoids doing this in cases where the context data may no longer be valid.
Original PR: #73796
Reviewed by: @ktoso
Risk: Low. We now signpost the wrapper functions themselves instead of trying to dig into the context, which is strictly safer. This changes the info we provide to Instruments, but code inspection and testing indicate that it tolerates the change.
Resolves: rdar://126298035
Tests: Manually tested with a reproducer.
Login to write a write a comment.
When using a future adapter, the resume context may not be valid after the task starts running. Only peer through the adapter when we're starting to run.
rdar://126298035