| 503 | #endif // #ifdef __linux__ ... #else ... |
| 504 | |
| 505 | Status GetThreadStack(int64_t tid, StackTrace* stack, MonoDelta timeout) { |
| 506 | StackTraceCollector c; |
| 507 | RETURN_NOT_OK(c.TriggerAsync(tid, stack)); |
| 508 | return c.AwaitCollection(MonoTime::Now() + timeout); |
| 509 | } |
| 510 | |
| 511 | string DumpThreadStack(int64_t tid) { |
| 512 | StackTrace trace; |