public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44236]  New: Output initializers in .text.init section
@ 2010-05-21 23:10 tglek at mozilla dot com
  0 siblings, 0 replies; only message in thread
From: tglek at mozilla dot com @ 2010-05-21 23:10 UTC (permalink / raw)
  To: gcc-bugs

In mozilla there are a lot of page faults caused by paging in C++ global
initializers. About 1/3rd of firefox faults are globals.
ie the first part of a prelinked firefox startup is a bunch of faults caused by
_GLOBAL__I_nsFtpConnectionThread.cpp, _GLOBAL__I_nsCookieService.cpp, etc.

If these were grouped together large C++ apps would load much faster. Once the
initializers are easily identifiable by the linker, the linker needs to lay
these out in a continuous chunk in the ordered that they are called.


-- 
           Summary: Output initializers in .text.init section
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tglek at mozilla dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44236


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-21 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21 23:10 [Bug c++/44236] New: Output initializers in .text.init section tglek at mozilla dot com

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).