[profiler] Initialize threads in runtime initialization callback.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 9 May 2015 02:07:22 +0000 (04:07 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 9 May 2015 02:07:22 +0000 (04:07 +0200)
commitac84b9afeabd5a1abbd185ef9b9d2a40f6dcd336
treeff05630945e96e6b3775d61778a0d8f7e0e333fa
parent74be9b6b66514bf01732db98a886e46048b26294
[profiler] Initialize threads in runtime initialization callback.

For the helper and writer thread to actually work, we need Mono's threading
subsystem to be initialized (so we can use TLS and hazard pointers). We now
wait with starting these threads until Mono gives us the go-ahead.

This means that a bit more data will be buffered up in the thread-local log
buffers during startup, but it shouldn't really matter in practice.
mono/profiler/proflog.c