提交 70903763 编写于 作者: E Emilio G. Cota 提交者: Paolo Bonzini

linux-user: call rcu_(un)register_thread on pthread_(exit|create)

Signed-off-by: NEmilio G. Cota <cota@braap.org>
Message-Id: <1440375847-17603-13-git-send-email-cota@braap.org>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 492e1ca9
......@@ -4513,6 +4513,7 @@ static void *clone_func(void *arg)
CPUState *cpu;
TaskState *ts;
rcu_register_thread();
env = info->env;
cpu = ENV_GET_CPU(env);
thread_cpu = cpu;
......@@ -5614,6 +5615,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
thread_cpu = NULL;
object_unref(OBJECT(cpu));
g_free(ts);
rcu_unregister_thread();
pthread_exit(NULL);
}
#ifdef TARGET_GPROF
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册