File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/swift-inspect/Sources/swift-inspect/Operations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ fileprivate class ConcurrencyDumper {
323
323
print ( " warning: unable to decode is-running state of target tasks, running state and async backtraces will not be printed " )
324
324
}
325
325
326
- let taskToThread : [ swift_addr_t : swift_reflection_ptr_t ] =
326
+ let taskToThread : [ swift_addr_t : UInt64 ] =
327
327
Dictionary ( threadCurrentTasks. map { ( $1, $0) } , uniquingKeysWith: { $1 } )
328
328
329
329
var lastChilds : [ Bool ] = [ ]
@@ -364,7 +364,7 @@ fileprivate class ConcurrencyDumper {
364
364
let flags = decodeTaskFlags ( task)
365
365
366
366
output ( " Task \( hex: task. id) - flags= \( flags) enqueuePriority= \( hex: task. enqueuePriority) maxPriority= \( hex: task. maxPriority) address= \( hex: task. address) " )
367
- if let thread = taskToThread [ task. address] {
367
+ if let thread = taskToThread [ swift_addr_t ( task. address) ] {
368
368
output ( " current task on thread \( hex: thread) " )
369
369
}
370
370
if let parent = task. parent {
You can’t perform that action at this time.
0 commit comments