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/16734] New: fopen calls mmap to allocate its buffer


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

            Bug ID: 16734
           Summary: fopen calls mmap to allocate its buffer
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: dancol at dancol dot org

ALLOC_BUF in libioP.h unconditionally opens IO streams using mmap. That's silly
and quite inefficient, especially for Emacs, which (via GTK) ends up calling
mmap several times per user interaction.

The message linked below summarizes the problems with the mmap approach and
proposes a patch for using the standard allocator. Can we please revisit this
issue?

https://sourceware.org/ml/libc-alpha/2006-11/msg00061.html

-- 
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]