This is the mail archive of the glibc-bugs@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]

[Bug stdio/21735] open_memstream is not fflushed with fflush(0)


https://sourceware.org/bugzilla/show_bug.cgi?id=21735

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
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  de895ddcd7fc45caeeeb0ae312311b8bd31d82c5 (commit)
      from  8bd8c052e765d626fae1424e2739d009a185a6ba (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 -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=de895ddcd7fc45caeeeb0ae312311b8bd31d82c5

commit de895ddcd7fc45caeeeb0ae312311b8bd31d82c5
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Wed Jul 12 10:53:13 2017 +0100

    Disable single thread optimization for open_memstream

    Single thread optimization is valid if at thread creation time the
    optimization can be disabled.  This is in principle true for all
    stream objects that user code can access (and thus needs locking),
    using the same internal list as fflush(0) uses.  However in glibc
    open_memstream is not on that list (BZ 21735) so the optimization
    has to be disabled.

        * libio/memstream.c (__open_memstream): Set _IO_FLAGS2_NEED_LOCK.
        * libio/wmemstream.c (open_wmemstream): Likewise.
        * nptl/tst-memstream.c: New.

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

Summary of changes:
 ChangeLog            |    7 +++
 libio/memstream.c    |    3 +
 libio/wmemstream.c   |    3 +
 nptl/Makefile        |    2 +-
 nptl/tst-memstream.c |  101 ++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 115 insertions(+), 1 deletions(-)
 create mode 100644 nptl/tst-memstream.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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