File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 20
20
#include " swift/ABI/HeapObject.h"
21
21
#include " swift/ABI/MetadataValues.h"
22
22
23
+ // lldb knows about some of these internals. If you change things that lldb
24
+ // knows about (or might know about in the future, as a future lldb might be
25
+ // inspecting a process running an older Swift runtime), increment
26
+ // _swift_concurrency_debug_internal_layout_version and add a comment describing
27
+ // the new version.
28
+
23
29
namespace swift {
24
30
25
31
// / The default actor implementation. This is the layout of both
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ class TaskOptionRecord;
43
43
class TaskGroup ;
44
44
class ContinuationAsyncContext ;
45
45
46
+ // lldb knows about some of these internals. If you change things that lldb
47
+ // knows about (or might know about in the future, as a future lldb might be
48
+ // inspecting a process running an older Swift runtime), increment
49
+ // _swift_concurrency_debug_internal_layout_version and add a comment describing
50
+ // the new version.
51
+
46
52
extern FullMetadata<DispatchClassMetadata> jobHeapMetadata;
47
53
48
54
// / A schedulable job.
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ const void *const _swift_concurrency_debug_task_future_wait_resume_adapter;
49
49
SWIFT_EXPORT_FROM (swift_Concurrency)
50
50
bool _swift_concurrency_debug_supportsPriorityEscalation;
51
51
52
+ // / The current version of internal data structures that lldb may decode.
53
+ // / The version numbers used so far are:
54
+ // / 1 - The initial version number when this variable was added, in swift 6.1.
55
+ SWIFT_EXPORT_FROM (swift_Concurrency)
56
+ uint32_t _swift_concurrency_debug_internal_layout_version;
57
+
52
58
} // namespace swift
53
59
54
60
#endif
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ const void *const swift::_swift_concurrency_debug_asyncTaskSlabMetadata =
87
87
bool swift::_swift_concurrency_debug_supportsPriorityEscalation =
88
88
SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION;
89
89
90
+ uint32_t swift::_swift_concurrency_debug_internal_layout_version = 1 ;
91
+
90
92
void FutureFragment::destroy () {
91
93
auto queueHead = waitQueue.load (std::memory_order_acquire);
92
94
switch (queueHead.getStatus ()) {
You can’t perform that action at this time.
0 commit comments