Skip to content

[6.2] RemoteInspection: Add AsyncTaskInfo.IsSuspended based on HasTaskDependency #82968

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

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions include/swift/RemoteInspection/ReflectionContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class ReflectionContext
bool IsRunning;
bool IsEnqueued;
bool IsComplete;
bool IsSuspended;

bool HasThreadPort;
uint32_t ThreadPort;
Expand Down Expand Up @@ -1793,6 +1794,8 @@ class ReflectionContext
Info.IsEscalated = TaskStatusFlags & ActiveTaskStatusFlags::IsEscalated;
Info.IsEnqueued = TaskStatusFlags & ActiveTaskStatusFlags::IsEnqueued;
Info.IsComplete = TaskStatusFlags & ActiveTaskStatusFlags::IsComplete;
Info.IsSuspended =
TaskStatusFlags & ActiveTaskStatusFlags::HasTaskDependency;

setIsRunning(Info, AsyncTaskObj.get());
std::tie(Info.HasThreadPort, Info.ThreadPort) =
Expand Down
1 change: 1 addition & 0 deletions include/swift/RemoteInspection/RuntimeInternals.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ struct ActiveTaskStatusFlags {
static const uint32_t IsRunning = 0x800;
static const uint32_t IsEnqueued = 0x1000;
static const uint32_t IsComplete = 0x2000;
static const uint32_t HasTaskDependency = 0x4000;
};

template <typename Runtime, typename ActiveTaskStatus>
Expand Down