File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
stdlib/public/SwiftRemoteMirror Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 21
21
#ifndef SWIFT_REFLECTION_RUNTIME_INTERNALS_H
22
22
#define SWIFT_REFLECTION_RUNTIME_INTERNALS_H
23
23
24
+ #include < stdint.h>
25
+
24
26
namespace swift {
25
27
26
28
namespace reflection {
@@ -90,9 +92,15 @@ struct StackAllocator {
90
92
};
91
93
};
92
94
95
+ template <typename Runtime>
96
+ struct ActiveTaskStatus {
97
+ typename Runtime::StoredPointer Record;
98
+ typename Runtime::StoredSize Flags;
99
+ };
100
+
93
101
template <typename Runtime>
94
102
struct AsyncTaskPrivateStorage {
95
- typename Runtime::StoredSize Status;
103
+ ActiveTaskStatus< Runtime> Status;
96
104
StackAllocator<Runtime> Allocator;
97
105
typename Runtime::StoredPointer Local;
98
106
};
Original file line number Diff line number Diff line change @@ -40,8 +40,10 @@ extern unsigned long long swift_reflection_classIsSwiftMask;
40
40
// / presence of a bug fix or feature that can't be detected from the outside
41
41
// / otherwise. The currently used version numbers are:
42
42
// /
43
- // / 0 - Indicates that swift_reflection_iterateAsyncTaskAllocations has been
44
- // / fixed to use the right AsyncTask layout.
43
+ // / 0 - Indicates that swift_reflection_iterateAsyncTaskAllocations has the
44
+ // / first attempted fix to use the right AsyncTask layout.
45
+ // / 1 - Indicates that swift_reflection_iterateAsyncTaskAllocations has been
46
+ // / actually fixed to use the right AsyncTask layout.
45
47
SWIFT_REMOTE_MIRROR_LINKAGE extern uint32_t swift_reflection_libraryVersion;
46
48
47
49
// / Get the metadata version supported by the Remote Mirror library.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ extern "C" {
18
18
SWIFT_REMOTE_MIRROR_LINKAGE
19
19
unsigned long long swift_reflection_classIsSwiftMask = 2 ;
20
20
21
- SWIFT_REMOTE_MIRROR_LINKAGE uint32_t swift_reflection_libraryVersion = 0 ;
21
+ SWIFT_REMOTE_MIRROR_LINKAGE uint32_t swift_reflection_libraryVersion = 1 ;
22
22
}
23
23
24
24
#include " swift/Demangling/Demangler.h"
You can’t perform that action at this time.
0 commit comments