about summary refs log tree commit diff
path: root/nptl/stack-aliasing.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-01-30 18:07:32 -0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-02-06 15:58:32 -0200
commit37f8abad1c7b274e66eaf2d04684bd8a7ba0bcef (patch)
tree186d0281c94cd644f54b0cfbc64111c250ecee7f /nptl/stack-aliasing.h
parent2b7dc4c868553db14f439ee4b49873f6ca3ef71f (diff)
downloadglibc-37f8abad1c7b274e66eaf2d04684bd8a7ba0bcef.tar.gz
glibc-37f8abad1c7b274e66eaf2d04684bd8a7ba0bcef.tar.xz
glibc-37f8abad1c7b274e66eaf2d04684bd8a7ba0bcef.zip
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.
Diffstat (limited to 'nptl/stack-aliasing.h')
-rw-r--r--nptl/stack-aliasing.h6
1 files changed, 0 insertions, 6 deletions
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
    <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