[PATCH 04/25] sched_setaffinity (Linux variant): Rewrite to use VLA instead of alloca

Florian Weimer fweimer@redhat.com
Mon Mar 16 18:02:00 GMT 2015


On 03/01/2015 03:05 PM, Florian Weimer wrote:
> extend_alloca was used to emulate VLA deallocation.

This new version of the patch follows the changes to the patch
“pthread_setaffinity (Linux variant): Rewrite to use VLA instead of
alloca” (same thread).

2015-03-16  Florian Weimer  <fweimer@redhat.com>

	* sysdeps/unix/sysv/linux/sched_setaffinity.c
	(__sched_setaffinity_new): Replace extend_alloca with a
	variable-length array.  Do not treat res == 0 as an error.

-- 
Florian Weimer / Red Hat Product Security
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sched_setaffinity-Linux-variant-Rewrite-to-use-VLA-i.patch
Type: text/x-patch
Size: 2172 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150316/8fb61e0e/attachment.bin>


More information about the Libc-alpha mailing list