Pump hazard pointer queue in unregister_thread while thread is still alive. (#4183)
authorAleksey Kliger (λgeek) <akliger@gmail.com>
Thu, 22 Dec 2016 16:41:04 +0000 (11:41 -0500)
committerGitHub <noreply@github.com>
Thu, 22 Dec 2016 16:41:04 +0000 (11:41 -0500)
commit87b786ed9276fd21c08dac97fe48f75a875e6b22
tree0126a353f037e5323ff6042d1a267769567505f2
parent10e1dc5314beeacb1c59db01ae10aceae7495627
Pump hazard pointer queue in unregister_thread while thread is still alive. (#4183)

Some of the destructors (for example mono_jit_info_table_free) may try to take
a lock, which requires that the current thread should be attached.
mono/utils/mono-threads.c