This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.26.9000-1254-g673e230
- From: azanella at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 1 Feb 2018 13:17:57 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26.9000-1254-g673e230
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 673e230560ac874deed6993d8b9ebaf82e73c408 (commit)
from ced64e014c811573cbafc92315161d6d5ce05543 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=673e230560ac874deed6993d8b9ebaf82e73c408
commit 673e230560ac874deed6993d8b9ebaf82e73c408
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Feb 1 10:31:57 2018 -0200
stdlib: Fixing test-*atexit*-race tests on ia64
These tests require a new thread stack size set to a value (0x20000)
lower than the architecture minimum (0x30000). Set the stack size
to PTHREAD_STACK_MIN in this case.
Checked on ia64-linux-gnu.
* stdlib/test-atexit-race-common.c (do_test): Check stack size
against PTHREAD_STACK_MIN.
diff --git a/ChangeLog b/ChangeLog
index d577abc..fdf303a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * stdlib/test-atexit-race-common.c (do_test): Check stack size
+ against PTHREAD_STACK_MIN.
+
2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
* manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
diff --git a/stdlib/test-atexit-race-common.c b/stdlib/test-atexit-race-common.c
index 4d7f911..8adf133 100644
--- a/stdlib/test-atexit-race-common.c
+++ b/stdlib/test-atexit-race-common.c
@@ -34,9 +34,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <support/xthread.h>
+#include <limits.h>
const size_t kNumThreads = 1024;
const size_t kNumHandlers = 1024;
+const size_t kStacksize =
+ 0x20000 < PTHREAD_STACK_MIN ? PTHREAD_STACK_MIN : 0x20000;
static void *
threadfunc (void *unused)
@@ -60,7 +63,7 @@ do_test (void)
/* With default 8MiB Linux stack size, creating 1024 threads can cause
VM exhausiton on 32-bit machines. Reduce stack size of each thread to
128KiB for a maximum required VM size of 128MiB. */
- xpthread_attr_setstacksize (&attr, 128 * 1024);
+ xpthread_attr_setstacksize (&attr, kStacksize);
for (i = 0; i < kNumThreads; ++i) {
xpthread_create (&attr, threadfunc, NULL);
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
stdlib/test-atexit-race-common.c | 5 ++++-
2 files changed, 9 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources