[interp] Allocate ThreadContext structures on the heap instead of on the stack, the...
commitc2698519b0c60c2c6b0edbcbc2c5859e74d7ad4e
authorZoltan Varga <vargaz@gmail.com>
Thu, 22 Mar 2018 01:25:21 +0000 (21 21:25 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Mar 2018 01:25:21 +0000 (21 21:25 -0400)
treeb80b5ddd6e3e6bbf88fe1f71a6ffe86c4a8b7532
parent678576f5a8c1a31484dac305e46544371410bb48
[interp] Allocate ThreadContext structures on the heap instead of on the stack, the latter doesn't work in mixed mode if the native frame gets unwound during exception handling, so the set_context (NULL) call is never executed, leaving a dangling ref in the tls variable. (#7747)
mono/mini/interp/interp.c
mono/mini/mini-runtime.c