[profiler] Attach threads automatically in all callbacks.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Mon, 19 Jun 2017 23:50:18 +0000 (01:50 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Tue, 20 Jun 2017 03:38:51 +0000 (05:38 +0200)
commit37ddfb1da4dbad724193180d2c6a04437e3b5cb9
tree6de267c06a9a8ccc74eb6ea28752239b438bdf26
parentce31c277fb2eb8faa730c77e73593368186d411b
[profiler] Attach threads automatically in all callbacks.

This hardens the profiler against cases where an unattached thread causes some
event callback to be invoked. This is particularly relevant when embedding.
mono/profiler/log.c