[Concurrency] Add _concurrency_current_task_storage_kind to Debug.h#90290
[Concurrency] Add _concurrency_current_task_storage_kind to Debug.h#90290felipepiovezan wants to merge 2 commits into
Conversation
…on in static linked libs This symbol is currently removed by the linker on static builds e.g. in embedded swift or linux.
| #include "ExecutorBridge.h" | ||
| #include "TaskPrivate.h" | ||
| #include "swift/ABI/Actor.h" | ||
| #include "swift/ABI/Task.h" |
There was a problem hiding this comment.
this is clang-format's doing..
|
@swift-ci please smoke test |
al45tair
left a comment
There was a problem hiding this comment.
I did briefly wonder whether we should just have an API for the debugger to call, though of course that means doing a call in the inferior, which is a lot more expensive than just poking about in its memory.
Yeah, actually I should have linked a post on the forums about this. Let me quote what I said there:
(https://forums.swift.org/t/exploring-multicore-concurrency-for-embedded-swift/87129/10) |
I need to update this test |
This variable is used to tell the debugger how the runtime stores the currently executing task. Prior to this patch, the debugger has no way of knowing how the concurrency library was configured for the target, as this is a build-time decision; as a result, it is forced to assume the "common" configuration of swift for macos targets. Bumping the concurrency version number is not necessary, as this is not changing the debug ABI in any way. The debugger can simply test the presence of the symbol.
2027c96 to
a81d13d
Compare
|
@swift-ci please smoke test |
|
Compiler seems broken: |
|
@swift-ci smoke test |
This PR is required for swiftlang/llvm-project#13279