Closed madewokherd closed 3 years ago
Searching the CI logs for "Test timed out" shows that this introduces quite a few failures to exit and thus 5 minute timeouts.
The problem was that we rely on profiler events to to prevent a loop of Environment.Exit -> crt exit() -> CorExitProcess -> Environment.Exit. Once shutdown has started, we just have CorExitProcess call ExitProcess, but we need the profiler event to tell us when that is. So we need that notification in the non-cleanup codepath.
Somehow this made the test suite take so long we didn't get any results. Also it trips the expect_no_runtimes check at process exit.