public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Reduce __MAX_ALLOCA_CUTOFF to 8192
@ 2021-08-28 0:32 Fangrui Song
0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-28 0:32 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3a84f426fdd25e3a18c38f31ba8b41dbe0d55100
commit 3a84f426fdd25e3a18c38f31ba8b41dbe0d55100
Author: Stan Shebs <stanshebs@google.com>
Date: Tue Oct 8 14:30:43 2019 -0700
Reduce __MAX_ALLOCA_CUTOFF to 8192
Diff:
---
include/alloca.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/alloca.h b/include/alloca.h
index fd90664f0a..900e744a41 100644
--- a/include/alloca.h
+++ b/include/alloca.h
@@ -19,7 +19,9 @@ extern int __libc_use_alloca (size_t size) __attribute__ ((const));
extern int __libc_alloca_cutoff (size_t size) __attribute__ ((const));
libc_hidden_proto (__libc_alloca_cutoff)
-#define __MAX_ALLOCA_CUTOFF 65536
+/* Reduce from the usual 65536 so as to avoid stack overflow in situations where
+ threads have not been given much spare stack space. */
+#define __MAX_ALLOCA_CUTOFF 8192
#include <allocalim.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [glibc/maskray/grte] Reduce __MAX_ALLOCA_CUTOFF to 8192
@ 2021-08-28 0:28 Fangrui Song
0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-28 0:28 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=73057fb624a8d06063c83c4a580de3ea39f31f3f
commit 73057fb624a8d06063c83c4a580de3ea39f31f3f
Author: Stan Shebs <stanshebs@google.com>
Date: Tue Oct 8 14:30:43 2019 -0700
Reduce __MAX_ALLOCA_CUTOFF to 8192
Diff:
---
include/alloca.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/alloca.h b/include/alloca.h
index fd90664f0a..900e744a41 100644
--- a/include/alloca.h
+++ b/include/alloca.h
@@ -19,7 +19,9 @@ extern int __libc_use_alloca (size_t size) __attribute__ ((const));
extern int __libc_alloca_cutoff (size_t size) __attribute__ ((const));
libc_hidden_proto (__libc_alloca_cutoff)
-#define __MAX_ALLOCA_CUTOFF 65536
+/* Reduce from the usual 65536 so as to avoid stack overflow in situations where
+ threads have not been given much spare stack space. */
+#define __MAX_ALLOCA_CUTOFF 8192
#include <allocalim.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [glibc/maskray/grte] Reduce __MAX_ALLOCA_CUTOFF to 8192
@ 2021-08-27 23:45 Fangrui Song
0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-27 23:45 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d9cd3416e6100244b66f3ee3041ceab61e4c1cc8
commit d9cd3416e6100244b66f3ee3041ceab61e4c1cc8
Author: Stan Shebs <stanshebs@google.com>
Date: Tue Oct 8 14:30:43 2019 -0700
Reduce __MAX_ALLOCA_CUTOFF to 8192
Diff:
---
include/alloca.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/alloca.h b/include/alloca.h
index fd90664f0a..900e744a41 100644
--- a/include/alloca.h
+++ b/include/alloca.h
@@ -19,7 +19,9 @@ extern int __libc_use_alloca (size_t size) __attribute__ ((const));
extern int __libc_alloca_cutoff (size_t size) __attribute__ ((const));
libc_hidden_proto (__libc_alloca_cutoff)
-#define __MAX_ALLOCA_CUTOFF 65536
+/* Reduce from the usual 65536 so as to avoid stack overflow in situations where
+ threads have not been given much spare stack space. */
+#define __MAX_ALLOCA_CUTOFF 8192
#include <allocalim.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-28 0:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28 0:32 [glibc/maskray/grte] Reduce __MAX_ALLOCA_CUTOFF to 8192 Fangrui Song
-- strict thread matches above, loose matches on Subject: below --
2021-08-28 0:28 Fangrui Song
2021-08-27 23:45 Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).