Skip to content

Commit 92ead52

Browse files
authored
[Concurrency] Fix swift-inspect and remote mirror build (#79715)
1 parent c937aa0 commit 92ead52

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

include/swift/RemoteInspection/ReflectionContext.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ class ReflectionContext
184184
bool IsFuture;
185185
bool IsGroupChildTask;
186186
bool IsAsyncLetTask;
187+
bool IsSynchronousStartTask;
187188

188189
// Task flags.
189190
unsigned MaxPriority;

include/swift/SwiftRemoteMirror/SwiftRemoteMirrorTypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ typedef struct swift_async_task_info {
243243
bool IsFuture;
244244
bool IsGroupChildTask;
245245
bool IsAsyncLetTask;
246+
bool IsSynchronousStartTask;
246247

247248
unsigned MaxPriority;
248249
bool IsCancelled;

stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,7 @@ swift_reflection_asyncTaskInfo(SwiftReflectionContextRef ContextRef,
10131013
Result.IsFuture = TaskInfo.IsFuture;
10141014
Result.IsGroupChildTask = TaskInfo.IsGroupChildTask;
10151015
Result.IsAsyncLetTask = TaskInfo.IsAsyncLetTask;
1016+
Result.IsSynchronousStartTask = TaskInfo.IsSynchronousStartTask;
10161017

10171018
Result.MaxPriority = TaskInfo.MaxPriority;
10181019
Result.IsCancelled = TaskInfo.IsCancelled;

tools/swift-inspect/Sources/swift-inspect/Operations/DumpConcurrency.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ fileprivate class ConcurrencyDumper {
5555
var isStatusRecordLocked: Bool
5656
var isEscalated: Bool
5757
var hasIsRunning: Bool
58-
var isSynchronousStartTask: Bool
5958
var isRunning: Bool
6059
var isEnqueued: Bool
6160
var threadPort: UInt32?
@@ -276,7 +275,6 @@ fileprivate class ConcurrencyDumper {
276275
if info.isEscalated { flags.append("escalated") }
277276
if info.hasIsRunning && info.isRunning { flags.append("running") }
278277
if info.isEnqueued { flags.append("enqueued") }
279-
if info.isSynchronousStart { flags.append("isSynchronousStartTask") }
280278

281279
let flagsStr = flags.isEmpty ? "0" : flags.joined(separator: "|")
282280
return flagsStr

0 commit comments

Comments
 (0)