This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH,RFA] Ensure check_may_shrink_heap always returns the final value
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 09 Dec 2014 16:00:34 -0200
- Subject: Re: [PATCH,RFA] Ensure check_may_shrink_heap always returns the final value
- Authentication-results: sourceware.org; auth=none
- References: <or1u4n5aig dot fsf at livre dot home>
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