projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[coop] Assert that trampolines are called from GC unsafe code
[mono.git]
/
mono
/
mini
/
mini-exceptions.c
diff --git
a/mono/mini/mini-exceptions.c
b/mono/mini/mini-exceptions.c
index 8251f4ef15d8c78808e2992039e605d2545dbdcb..779f02c6dd861579af35dea039746b0762da4e6e 100644
(file)
--- a/
mono/mini/mini-exceptions.c
+++ b/
mono/mini/mini-exceptions.c
@@
-2146,6
+2146,8
@@
restore_stack_protection (void)
gpointer
mono_altstack_restore_prot (mgreg_t *regs, guint8 *code, gpointer *tramp_data, guint8* tramp)
{
+ MONO_REQ_GC_UNSAFE_MODE;
+
void (*func)(void) = (void (*)(void))tramp_data;
func ();
return NULL;