Merge pull request #2749 from BrzVlad/fix-suspend-deadlock
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 10 Mar 2016 23:20:19 +0000 (23:20 +0000)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 10 Mar 2016 23:20:19 +0000 (23:20 +0000)
[runtime] Fix deadlock while unwinding the stack of suspended thread

A suspended thread, in non-coop case, can be holding runtime locks. When the suspender tries to unwind the stack for this thread, it might require taking of runtime locks (ex. in aot case we might search for the jit info in the aot image and then register it, which requires the domain lock). Mark the suspender thread as running in async context while it unwinds other threads.


Trivial merge