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)
commit5a9dfc17d956ff8f7b1dc4b48964393ed89ce07f
tree6fd2e676e089a80d80c87909a3945a2b3e4697bd
parent1180491691b59403122d656b7d6df6fe768f6846
parentee8a9b3f6cbdd0aca4249d3fbf9b176c9119ad79
Merge pull request #2749 from BrzVlad/fix-suspend-deadlock

[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.