| 332 | |
| 333 | thread_local static int volatile running = 0; |
| 334 | void* thread_pong(void* depth) |
| 335 | { |
| 336 | #ifdef RANDOMIZE_SP |
| 337 | if (depth) |
| 338 | return thread_pong((void*)((uint64_t)depth - 1)); |
| 339 | #endif |
| 340 | running = 1; |
| 341 | while (running) |
| 342 | thread_yield_fast(); |
| 343 | return nullptr; |
| 344 | } |
| 345 | |
| 346 | int DevNull(void*, int); |
| 347 | void test_thread_switch(uint64_t nth, uint64_t stack_size) |
nothing calls this directly
no test coverage detected