Skip to content

Commit b12ab96

Browse files
authored
Merge pull request #38725 from mikeash/fix-iterate-async-task-allocations-again
2 parents ce660f5 + d959b3d commit b12ab96

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

include/swift/Reflection/RuntimeInternals.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#ifndef SWIFT_REFLECTION_RUNTIME_INTERNALS_H
2222
#define SWIFT_REFLECTION_RUNTIME_INTERNALS_H
2323

24+
#include <stdint.h>
25+
2426
namespace swift {
2527

2628
namespace reflection {
@@ -90,9 +92,15 @@ struct StackAllocator {
9092
};
9193
};
9294

95+
template <typename Runtime>
96+
struct ActiveTaskStatus {
97+
typename Runtime::StoredPointer Record;
98+
typename Runtime::StoredSize Flags;
99+
};
100+
93101
template <typename Runtime>
94102
struct AsyncTaskPrivateStorage {
95-
typename Runtime::StoredSize Status;
103+
ActiveTaskStatus<Runtime> Status;
96104
StackAllocator<Runtime> Allocator;
97105
typename Runtime::StoredPointer Local;
98106
};

include/swift/SwiftRemoteMirror/SwiftRemoteMirror.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ extern unsigned long long swift_reflection_classIsSwiftMask;
4040
/// presence of a bug fix or feature that can't be detected from the outside
4141
/// otherwise. The currently used version numbers are:
4242
///
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.
4547
SWIFT_REMOTE_MIRROR_LINKAGE extern uint32_t swift_reflection_libraryVersion;
4648

4749
/// Get the metadata version supported by the Remote Mirror library.

stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extern "C" {
1818
SWIFT_REMOTE_MIRROR_LINKAGE
1919
unsigned long long swift_reflection_classIsSwiftMask = 2;
2020

21-
SWIFT_REMOTE_MIRROR_LINKAGE uint32_t swift_reflection_libraryVersion = 0;
21+
SWIFT_REMOTE_MIRROR_LINKAGE uint32_t swift_reflection_libraryVersion = 1;
2222
}
2323

2424
#include "swift/Demangling/Demangler.h"

0 commit comments

Comments
 (0)