Skip to content

Commit 1b93f58

Browse files
committed
[6.2] RemoteInspection: Add AsyncTaskInfo.IsSuspended based on HasTaskDependency
1 parent 1dd4a99 commit 1b93f58

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/swift/RemoteInspection/ReflectionContext.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ class ReflectionContext
198198
bool IsRunning;
199199
bool IsEnqueued;
200200
bool IsComplete;
201+
bool IsSuspended;
201202

202203
bool HasThreadPort;
203204
uint32_t ThreadPort;
@@ -1793,6 +1794,8 @@ class ReflectionContext
17931794
Info.IsEscalated = TaskStatusFlags & ActiveTaskStatusFlags::IsEscalated;
17941795
Info.IsEnqueued = TaskStatusFlags & ActiveTaskStatusFlags::IsEnqueued;
17951796
Info.IsComplete = TaskStatusFlags & ActiveTaskStatusFlags::IsComplete;
1797+
Info.IsSuspended =
1798+
TaskStatusFlags & ActiveTaskStatusFlags::HasTaskDependency;
17961799

17971800
setIsRunning(Info, AsyncTaskObj.get());
17981801
std::tie(Info.HasThreadPort, Info.ThreadPort) =

include/swift/RemoteInspection/RuntimeInternals.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ struct ActiveTaskStatusFlags {
113113
static const uint32_t IsRunning = 0x800;
114114
static const uint32_t IsEnqueued = 0x1000;
115115
static const uint32_t IsComplete = 0x2000;
116+
static const uint32_t HasTaskDependency = 0x4000;
116117
};
117118

118119
template <typename Runtime, typename ActiveTaskStatus>

0 commit comments

Comments
 (0)