Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/mono/utils/mono-threads-coop.c b/mono/utils/mono-threads-coop.c
- index 28bf12c..dacaa1d 100644
- --- a/mono/utils/mono-threads-coop.c
- +++ b/mono/utils/mono-threads-coop.c
- @@ -314,12 +314,15 @@ mono_threads_enter_gc_safe_region_unbalanced (gpointer *stackpointer)
- return mono_threads_enter_gc_safe_region_unbalanced_internal (&stackdata);
- }
- -static MONO_NO_OPTIMIZATION gpointer
- +static gpointer
- mono_threads_enter_gc_safe_region_unbalanced_with_info (MonoThreadInfo *info, MonoStackData *stackdata)
- {
- if (!mono_threads_is_blocking_transition_enabled ())
- return NULL;
- + MonoContext ctx;
- + MONO_CONTEXT_GET_CURRENT (ctx);
- +
- ++coop_do_blocking_count;
- const char *function_name = mono_stackdata_get_function_name (stackdata);
- @@ -331,6 +334,7 @@ mono_threads_enter_gc_safe_region_unbalanced_with_info (MonoThreadInfo *info, Mo
- retry:
- ++coop_save_count;
- mono_threads_get_runtime_callbacks ()->thread_state_init (&info->thread_saved_state [SELF_SUSPEND_STATE_INDEX]);
- + info->thread_saved_state [SELF_SUSPEND_STATE_INDEX].ctx = ctx;
- switch (mono_threads_transition_do_blocking (info, function_name)) {
- case DoBlockingContinue:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement