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 v2] nptl: Invert the mmap/mprotect logic on allocated stacks (BZ#18988)


On 02/06/2017 09:49 PM, Adhemerval Zanella wrote:
> 	[BZ #18988]
> 	* benchtests/thread_create-inputs: New file.
> 	* benchtests/thread_create-source.c: Likewise.
> 	* support/xpthread_attr_setguardsize.c: Likewise.
> 	* support/Makefile (libsupport-routines): Add
> 	xpthread_attr_setguardsize object.
> 	* support/xthread.h: Add xpthread_attr_setguardsize prototype.
> 	* benchtests/Makefile (bench-pthread): Add thread_create.
> 	* nptl/allocatestack.c (allocate_stack): Call mmap with PROT_NONE and
> 	then mprotect the required area.

Looks good to me.

Thanks,
Florian


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