File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Sources/WasmKit/Execution Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ struct Backtrace: CustomStringConvertible, Sendable {
1111 let debuggingAddress : DebuggingAddress
1212
1313 /// Address of the symbol for debugging purposes.
14- enum DebuggingAddress : CustomStringConvertible , @unchecked Sendable {
14+ enum DebuggingAddress : CustomStringConvertible ,
15+ // `Pc` is a pointer, which is not `Sendable` by default.
16+ @unchecked Sendable
17+ {
1518 case iseq( Pc )
1619 case wasm( UInt64 )
1720
@@ -31,7 +34,7 @@ struct Backtrace: CustomStringConvertible, Sendable {
3134 var description : String {
3235 symbols. enumerated ( ) . map { ( index, symbol) in
3336 let name = symbol. name ?? " unknown "
34- return " \( symbol. debuggingAddress) : \( name) "
37+ return " \( index ) : ( \( symbol. debuggingAddress) ) \( name) "
3538 } . joined ( separator: " \n " )
3639 }
3740}
You can’t perform that action at this time.
0 commit comments