This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,RFA] Ensure check_may_shrink_heap always returns the final value


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]