aboutsummaryrefslogtreecommitdiff
path: root/malloc/memusage.c
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-07-19 10:10:17 -0400
committerAurelien Jarno <aurelien@aurel32.net>2024-07-19 21:22:02 +0200
commitf6a75fddf4e71545c63dfcad99cc2df9bac38093 (patch)
tree2962d4569dca1f1c68c67e0141757f6b56bf552e /malloc/memusage.c
parente8f521709731ce3ae8d6f1eca30135d5c0606f02 (diff)
downloadglibc-release/2.39/master.zip
glibc-release/2.39/master.tar.gz
glibc-release/2.39/master.tar.bz2
Fix usage of _STACK_GROWS_DOWN and _STACK_GROWS_UP defines [BZ 31989]release/2.39/master
Signed-off-by: John David Anglin <dave.anglin@bell.net> Reviewed-By: Andreas K. Hüttel <dilfridge@gentoo.org> (cherry picked from commit 8cfa4ecff21adf226984f135aa576dd8063bbba3)
Diffstat (limited to 'malloc/memusage.c')
-rw-r--r--malloc/memusage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/memusage.c b/malloc/memusage.c
index e8ae80d..f80225b 100644
--- a/malloc/memusage.c
+++ b/malloc/memusage.c
@@ -172,7 +172,7 @@ update_data (struct header *result, size_t len, size_t old_len)
start_sp = __thread_stack_pointer ();
uintptr_t sp = __thread_stack_pointer ();
-#ifdef _STACK_GROWS_UP
+#if _STACK_GROWS_UP
/* This can happen in threads where we didn't catch the thread's
stack early enough. */
if (__glibc_unlikely (sp < start_sp))