[threads] Don't ignore abort requests in abort protected blocks
authorVlad Brezae <brezaevlad@gmail.com>
Sat, 25 Feb 2017 00:59:14 +0000 (02:59 +0200)
committerVlad Brezae <brezaevlad@gmail.com>
Sat, 25 Feb 2017 00:59:14 +0000 (02:59 +0200)
commitbc25f308cabad9bb333a1d596fe89881205cc82f
treec02ae4b370cc45b0c51b01d80bcde5f9d90b4fb1
parent17c5a00c59613a7c5dbce76af5107a14c3e89f76
[threads] Don't ignore abort requests in abort protected blocks

Either interrupt or set the interrupt_deferred flag, so the thread can handle the request later in the future. Otherwise we are left with a thread that has an AbortRequested set on its state that it is never processed and future abort requests are ignored due to the presence of this flag.
mono/metadata/threads.c