From 37f8abad1c7b274e66eaf2d04684bd8a7ba0bcef Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 30 Jan 2017 18:07:32 -0200 Subject: nptl: Remove COLORING_INCREMENT This patch removes the COLORING_INCREMENT define and usage on allocatestack.c. It has not been used since 564cd8b67ec487f (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. --- nptl/stack-aliasing.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'nptl/stack-aliasing.h') diff --git a/nptl/stack-aliasing.h b/nptl/stack-aliasing.h index 4d6c013ef0..73ee4ded3d 100644 --- a/nptl/stack-aliasing.h +++ b/nptl/stack-aliasing.h @@ -16,12 +16,6 @@ License along with the GNU C Library; if not, see . */ -/* 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 -- cgit v1.2.1