[thread] Remove mono_thread_info_begin_suspend unused parameter
authorLudovic Henry <ludovic@xamarin.com>
Mon, 1 Feb 2016 18:17:35 +0000 (18:17 +0000)
committerLudovic Henry <ludovic@xamarin.com>
Thu, 4 Feb 2016 13:38:51 +0000 (13:38 +0000)
mono/metadata/sgen-stw.c
mono/utils/mono-threads.c
mono/utils/mono-threads.h

index b2cb17c3b91dd3bb50bbd4c6812409f6734de873..4b54c8d267251baba139888a2b23f5e6d70b4adc 100644 (file)
@@ -397,7 +397,7 @@ sgen_unified_suspend_stop_world (void)
                info->client_info.skip = FALSE;
                info->client_info.suspend_done = FALSE;
                if (sgen_is_thread_in_current_stw (info)) {
-                       info->client_info.skip = !mono_thread_info_begin_suspend (info, FALSE);
+                       info->client_info.skip = !mono_thread_info_begin_suspend (info);
                        THREADS_STW_DEBUG ("[GC-STW-BEGIN-SUSPEND] SUSPEND thread %p skip %d\n", mono_thread_info_get_tid (info), info->client_info.skip);
                } else {
                        THREADS_STW_DEBUG ("[GC-STW-BEGIN-SUSPEND] IGNORE thread %p skip %d\n", mono_thread_info_get_tid (info), info->client_info.skip);
@@ -458,7 +458,7 @@ sgen_unified_suspend_stop_world (void)
 
                FOREACH_THREAD_SAFE (info) {
                        if (sgen_is_thread_in_current_stw (info) && mono_thread_info_is_running (info)) {
-                               gboolean res = mono_thread_info_begin_suspend (info, FALSE);
+                               gboolean res = mono_thread_info_begin_suspend (info);
                                THREADS_STW_DEBUG ("[GC-STW-RESTART] SUSPEND thread %p skip %d\n", mono_thread_info_get_tid (info), res);
                                if (!res)
                                        info->client_info.skip = TRUE;
index 6ffc0093228252c85f08751b2afb9faa1a169184..7edd9438435bf1d25f205b6cf2f16068c6f152c8 100644 (file)
@@ -772,7 +772,7 @@ cleanup:
 }
 
 gboolean
-mono_thread_info_begin_suspend (MonoThreadInfo *info, gboolean interrupt_kernel)
+mono_thread_info_begin_suspend (MonoThreadInfo *info)
 {
        switch (mono_threads_transition_request_async_suspension (info)) {
        case AsyncSuspendAlreadySuspended:
@@ -782,7 +782,7 @@ mono_thread_info_begin_suspend (MonoThreadInfo *info, gboolean interrupt_kernel)
                mono_threads_add_to_pending_operation_set (info);
                return TRUE;
        case AsyncSuspendInitSuspend:
-               return begin_async_suspend (info, interrupt_kernel);
+               return begin_async_suspend (info, FALSE);
        default:
                g_assert_not_reached ();
        }
index 707e821d429c62770f91263b9f26812547c6d4ad..854bbe6e62365550b1b70b3dda13083fe2bac40d 100644 (file)
@@ -636,7 +636,7 @@ int mono_thread_info_current_state (THREAD_INFO_TYPE *info);
 const char* mono_thread_state_name (int state);
 
 gboolean mono_thread_info_in_critical_location (THREAD_INFO_TYPE *info);
-gboolean mono_thread_info_begin_suspend (THREAD_INFO_TYPE *info, gboolean interrupt_kernel);
+gboolean mono_thread_info_begin_suspend (THREAD_INFO_TYPE *info);
 gboolean mono_thread_info_begin_resume (THREAD_INFO_TYPE *info);
 
 gboolean