Fix to checked-build reference auditing
[mono.git] / mono / utils / mono-threads-api.h
index f94fd66e35b8f7832a6d9386117caf56b072420a..47e3454c3d93d42e2c78fd32ca54121df913d1ef 100644 (file)
@@ -20,8 +20,8 @@ This API is experimental. It will eventually be required to properly use the res
 */
 
 /* Don't use those directly, use the MONO_(BEGIN|END)_EFRAME */
-MONO_API void* mono_threads_enter_gc_unsafe_region (void);
-MONO_API void mono_threads_exit_gc_unsafe_region (void *region_cookie);
+MONO_API void* mono_threads_enter_gc_unsafe_region (void* stackdata);
+MONO_API void mono_threads_exit_gc_unsafe_region (void *region_cookie, void* stackdata);
 
 /*
 Use those macros to limit regions of code that interact with managed memory or use the embedding API.
@@ -31,8 +31,8 @@ For further explanation of what can and can't be done in GC unsafe mode:
 http://www.mono-project.com/docs/advanced/runtime/docs/coop-suspend/#gc-unsafe-mode
 
 */
-#define MONO_BEGIN_EFRAME { void *__region_cookie = mono_threads_enter_gc_unsafe_region ();
-#define MONO_END_EFRAME mono_threads_exit_gc_unsafe_region (__region_cookie); }
+#define MONO_BEGIN_EFRAME { void *__dummy; void *__region_cookie = mono_threads_enter_gc_unsafe_region (__dummy);
+#define MONO_END_EFRAME mono_threads_exit_gc_unsafe_region (__region_cookie, __dummy); }
 
 
 MONO_END_DECLS