[mono-dl] Don't do thread state transitions in mono_dl_fallback_register
commit275d1f5d16ae23d8edb071ea82f1893226889aa8
authorAleksey Kliger <alklig@microsoft.com>
Thu, 4 Apr 2019 22:09:41 +0000 (4 18:09 -0400)
committerAleksey Kliger <alklig@microsoft.com>
Thu, 4 Apr 2019 22:09:41 +0000 (4 18:09 -0400)
tree6aa51adc5fbc77a5610fd46e09c713e351404258
parent3bb6fe8797d70edd53330fe391a042f7c74a1978
[mono-dl] Don't do thread state transitions in mono_dl_fallback_register

1. it doesn't touch the managed runtime

2. it may be called (arguably it ought to be called only) before the runtime is
initialized (and in particular before the current thread is attached).
mono/utils/mono-dl.c