| ... | @@ -278,11 +278,11 @@ pub fn panicExtra(trace: ?*const builtin.StackTrace, first_trace_addr: ?usize, c | ... | @@ -278,11 +278,11 @@ pub fn panicExtra(trace: ?*const builtin.StackTrace, first_trace_addr: ?usize, c |
| 278 | // Another thread is panicking, wait for the last one to finish | 278 | // Another thread is panicking, wait for the last one to finish |
| 279 | // and call abort() | 279 | // and call abort() |
| 280 | | 280 | |
| 281 | // Here we sleep forever without hammering the CPU by causing a | 281 | // Sleep forever without hammering the CPU |
| 282 | // deadlock | 282 | var event = std.ResetEvent.init(); |
| 283 | var deadlock = std.Mutex.init(); | 283 | event.wait(); |
| 284 | _ = deadlock.acquire(); | 284 | |
| 285 | _ = deadlock.acquire(); | 285 | unreachable; |
| 286 | } | 286 | } |
| 287 | }, | 287 | }, |
| 288 | 1 => { | 288 | 1 => { |