projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
492e1ca
)
linux-user: call rcu_(un)register_thread on pthread_(exit|create)
author
Emilio G. Cota
<cota@braap.org>
Mon, 24 Aug 2015 00:23:41 +0000
(20:23 -0400)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 9 Sep 2015 13:34:54 +0000
(15:34 +0200)
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <
1440375847
-17603-13-git-send-email-cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index
f62c698
..
732936f
100644
(file)
--- a/
linux-user/syscall.c
+++ b/
linux-user/syscall.c
@@
-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