mirror of git://sourceware.org/git/glibc.git
* sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
a write barrier before writing libgcc_s_getcfa.
This commit is contained in:
parent
510afb6420
commit
e6e493bbc4
|
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-17 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
|
||||||
|
a write barrier before writing libgcc_s_getcfa.
|
||||||
|
|
||||||
2005-11-06 Ulrich Drepper <drepper@redhat.com>
|
2005-11-06 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/configure: Removed.
|
* sysdeps/unix/sysv/linux/configure: Removed.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 2003 Free Software Foundation, Inc.
|
/* Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Jakub Jelinek <jakub@redhat.com>.
|
Contributed by Jakub Jelinek <jakub@redhat.com>.
|
||||||
|
|
||||||
|
|
@ -56,6 +56,10 @@ pthread_cancel_init (void)
|
||||||
libgcc_s_resume = resume;
|
libgcc_s_resume = resume;
|
||||||
libgcc_s_personality = personality;
|
libgcc_s_personality = personality;
|
||||||
libgcc_s_forcedunwind = forcedunwind;
|
libgcc_s_forcedunwind = forcedunwind;
|
||||||
|
/* Make sure libgcc_s_getcfa is written last. Otherwise,
|
||||||
|
pthread_cancel_init might return early even when the pointer the
|
||||||
|
caller is interested in is not initialized yet. */
|
||||||
|
atomic_write_barrier ();
|
||||||
libgcc_s_getcfa = getcfa;
|
libgcc_s_getcfa = getcfa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue