1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

nptl: Remove COLORING_INCREMENT

This patch removes the COLORING_INCREMENT define and usage on allocatestack.c.
It has not been used since 564cd8b67e (glibc-2.3.3) by any architecture.
The idea is to simplify the code by removing obsolete code.

	* nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
	(allocate_stack): Remove COLORING_INCREMENT usage.
	* nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
	* sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
This commit is contained in:
Adhemerval Zanella
2017-01-30 18:07:32 -02:00
parent 2b7dc4c868
commit 37f8abad1c
4 changed files with 9 additions and 49 deletions

View File

@ -16,12 +16,6 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
/* This is a number of bytes (less than a page) by which to "color" the
starting stack address of new threads. This number is multiplied by the
number of threads created so far and then truncated modulo page size,
to get a roughly even distribution of values for different threads. */
#define COLORING_INCREMENT 0
/* This is a number of bytes that is an alignment that should be avoided
when choosing the exact size of a new thread's stack. If the size
chosen is aligned to this, an extra page will be added to render the