[PATCH,RFA] Ensure check_may_shrink_heap always returns the final value
Alexandre Oliva
aoliva@redhat.com
Tue Dec 9 18:00:00 GMT 2014
On Sep 17, 2013, Alexandre Oliva <aoliva@redhat.com> wrote:
> check_may_shrink_heap's initialization of may_shrink_heap was racy;
> before computing the final value of may_shrink_heap, it would store a
> value in it that other threads would mistake as final. Fixed by using
> a temporary automatic variable.
Ping?
https://sourceware.org/ml/libc-alpha/2013-09/msg00520.html
See also https://sourceware.org/ml/libc-alpha/2013-09/msg00543.html
> for ChangeLog:
> * sysdeps/unix/sysv/linux/sysdep-malloc.h
> (check_may_shrink_heap): Fix race condition in initialization.
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer
More information about the Libc-alpha
mailing list