public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-optional-psymtab: use madvise for index mapping
@ 2010-06-25 18:01 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2010-06-25 18:01 UTC (permalink / raw)
  To: archer-commits

The branch, archer-tromey-optional-psymtab has been updated
       via  d69853a658181be86b79b4daf2b6c4f2363a6795 (commit)
      from  a5e496c9f1f053fa4e2fd259d3b0f42bb235e08d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit d69853a658181be86b79b4daf2b6c4f2363a6795
Author: Tom Tromey <tromey@redhat.com>
Date:   Fri Jun 25 12:03:25 2010 -0600

    use madvise for index mapping

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

Summary of changes:
 gdb/dwarf2read.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

First 500 lines of diff:
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 23788f3..822d279 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1901,6 +1901,9 @@ dwarf2_read_index (struct objfile *objfile)
   /* FIXME - portability, error checking */
   addr = mmap (NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
   close (fd);
+#if HAVE_POSIX_MADVISE
+    posix_madvise (addr, st.st_size, POSIX_MADV_WILLNEED);
+#endif
 
   map = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct mapped_index);
   dwarf2_per_objfile->index_table = map;


hooks/post-receive
--
Repository for Project Archer.


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

only message in thread, other threads:[~2010-06-25 18:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-25 18:01 [SCM] archer-tromey-optional-psymtab: use madvise for index mapping tromey

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