提交 5775c9f5 编写于 作者: A Andreia Gaita

Don't suspend on thread end, the tls value is already null'd

上级 57ca2951
......@@ -3120,6 +3120,9 @@ process_event (EventKind event, gpointer arg, gint32 il_offset, MonoContext *ctx
suspend_policy = SUSPEND_POLICY_NONE;
}
if (event == EVENT_KIND_THREAD_DEATH)
suspend_policy = SUSPEND_POLICY_NONE;
if (mono_runtime_is_shutting_down ())
suspend_policy = SUSPEND_POLICY_NONE;
......@@ -3279,6 +3282,7 @@ thread_end (MonoProfiler *prof, gsize tid)
tls->thread = NULL;
/* FIXME Unity: Safe to free this? */
/* Yes, as long as the event raised further down doesn't cause a thread suspension */
TlsSetValue (debugger_tls_id, NULL);
g_free(tls);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册