[profiler] Do the final sample dump on shutdown in the helper thread.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 11 Jul 2015 09:29:54 +0000 (11:29 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 11 Jul 2015 09:52:37 +0000 (11:52 +0200)
commit4683ad435094253710fee4ee3c8446a9f45e7cb6
tree5dc7776c03cfa3115d81617fc3def9820d6737a3
parent0ec5cad047a994a07d5e61f8d6786dde27f8bb10
[profiler] Do the final sample dump on shutdown in the helper thread.

Reading the various fields on the profiler structure from the shutdown
thread is very racy; for example, we have no guarantee that we will see
a consistent GPtrArray structure for sorted_sample_events. It's better
to just let the helper thread empty the stat buffers when it shuts down.
mono/profiler/proflog.c