| ... | @@ -340,6 +340,7 @@ pub fn panicImpl(trace: ?*const std.builtin.StackTrace, first_trace_addr: ?usize | ... | @@ -340,6 +340,7 @@ pub fn panicImpl(trace: ?*const std.builtin.StackTrace, first_trace_addr: ?usize |
| 340 | if (panicking.fetchSub(1, .SeqCst) != 1) { | 340 | if (panicking.fetchSub(1, .SeqCst) != 1) { |
| 341 | // Another thread is panicking, wait for the last one to finish | 341 | // Another thread is panicking, wait for the last one to finish |
| 342 | // and call abort() | 342 | // and call abort() |
| | 343 | if (builtin.single_threaded) unreachable; |
| 343 | | 344 | |
| 344 | // Sleep forever without hammering the CPU | 345 | // Sleep forever without hammering the CPU |
| 345 | var futex = std.atomic.Atomic(u32).init(0); | 346 | var futex = std.atomic.Atomic(u32).init(0); |