From f6a75fddf4e71545c63dfcad99cc2df9bac38093 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Fri, 19 Jul 2024 10:10:17 -0400 Subject: Fix usage of _STACK_GROWS_DOWN and _STACK_GROWS_UP defines [BZ 31989] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John David Anglin Reviewed-By: Andreas K. Hüttel (cherry picked from commit 8cfa4ecff21adf226984f135aa576dd8063bbba3) --- malloc/memusage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc/memusage.c') 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)) -- cgit v1.1