Skip to content

RemoteInspection: Update DefaultActorImpl layout #80278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions include/swift/RemoteInspection/RuntimeInternals.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,24 +159,25 @@ struct FutureAsyncContextPrefix {
};

template <typename Runtime>
struct ActiveActorStatusWithEscalation {
struct alignas(2 * sizeof(typename Runtime::StoredPointer))
ActiveActorStatusWithEscalation {
uint32_t Flags[1];
uint32_t DrainLock[(sizeof(typename Runtime::StoredPointer) == 8) ? 1 : 2];
typename Runtime::StoredPointer FirstJob;
};

template <typename Runtime>
struct ActiveActorStatusWithoutEscalation {
struct alignas(2 * sizeof(typename Runtime::StoredPointer))
ActiveActorStatusWithoutEscalation {
uint32_t Flags[sizeof(typename Runtime::StoredPointer) == 8 ? 2 : 1];
typename Runtime::StoredPointer FirstJob;
};

template <typename Runtime, typename ActiveActorStatus>
struct DefaultActorImpl {
HeapObject<Runtime> HeapObject;
Job<Runtime> JobStorage;
ActiveActorStatus Status;
bool IsDistributedRemote;
ActiveActorStatus Status;
};

template <typename Runtime>
Expand Down