The patch committed to fix bug #18435 caused regressions on aarch64
[glibc.git] / nptl / stack-aliasing.h
blobc92538992bd24deb85d6e43701c679fc14890489
1 /* Define macros for stack address aliasing issues for NPTL. Stub version.
2 Copyright (C) 2014-2015 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 /* This is a number of bytes (less than a page) by which to "color" the
20 starting stack address of new threads. This number is multiplied by the
21 number of threads created so far and then truncated modulo page size,
22 to get a roughly even distribution of values for different threads. */
23 #define COLORING_INCREMENT 0
25 /* This is a number of bytes that is an alignment that should be avoided
26 when choosing the exact size of a new thread's stack. If the size
27 chosen is aligned to this, an extra page will be added to render the
28 size off-aligned. */
29 #define MULTI_PAGE_ALIASING 0