| ... | @@ -278,8 +278,11 @@ pub fn panicExtra(trace: ?*const builtin.StackTrace, first_trace_addr: ?usize, c | ... | @@ -278,8 +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 | // XXX: Find a nicer way to loop forever | 281 | // Here we sleep forever without hammering the CPU by causing a |
| 282 | while (true) {} | 282 | // deadlock |
| | 283 | var deadlock = std.Mutex.init(); |
| | 284 | _ = deadlock.acquire(); |
| | 285 | _ = deadlock.acquire(); |
| 283 | } | 286 | } |
| 284 | }, | 287 | }, |
| 285 | 1 => { | 288 | 1 => { |