This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.26-394-g8f83498


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  8f8349870fbcd822b0bdbd3200bc0245f812dae4 (commit)
      from  3de93d194a5d27cabfe40ddf58aea36939498ba4 (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=8f8349870fbcd822b0bdbd3200bc0245f812dae4

commit 8f8349870fbcd822b0bdbd3200bc0245f812dae4
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date:   Mon Sep 25 17:51:34 2017 -0700

    Reduce total memory required to create all threads to 128MiB. This fixes
    intermittent failure in stdlib/test-{atexit,at_quick_exit,...} tests
    (Bug 22207).

diff --git a/ChangeLog b/ChangeLog
index dddda15..a92b239 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+	[BZ #22207]
+	* stdlib/test-atexit-race-common.c (do_test): Minimize required
+	VM size.
+
 2017-09-25  DJ Delorie  <dj@redhat.com>
 
 	[BZ #22161]
diff --git a/stdlib/test-atexit-race-common.c b/stdlib/test-atexit-race-common.c
index b379283..3a03e06 100644
--- a/stdlib/test-atexit-race-common.c
+++ b/stdlib/test-atexit-race-common.c
@@ -57,6 +57,11 @@ do_test (void)
   xpthread_attr_init (&attr);
   xpthread_attr_setdetachstate (&attr, 1);
 
+  /* 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);
+
   for (i = 0; i < kNumThreads; ++i) {
     xpthread_create (&attr, threadfunc, NULL);
   }

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                        |    6 ++++++
 stdlib/test-atexit-race-common.c |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]