This is the mail archive of the archer-commits@sourceware.org mailing list for the Archer 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]

[SCM] archer-tromey-optional-psymtab: Use posix_madvise. This provides a small but consistent speedup.


The branch, archer-tromey-optional-psymtab has been updated
       via  e3fa2dd94f8b3ece2c5cc55c66a162a748e42e3d (commit)
      from  23ec414529d89fc389f846241a2ee76a6884d1b1 (commit)

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

- Log -----------------------------------------------------------------
commit e3fa2dd94f8b3ece2c5cc55c66a162a748e42e3d
Author: Tom Tromey <tromey@redhat.com>
Date:   Fri Dec 11 16:47:21 2009 -0700

    Use posix_madvise.  This provides a small but consistent speedup.

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

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

First 500 lines of diff:
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 61044e7..c31d330 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2882,6 +2882,7 @@ dwarf2_read_section_1 (struct objfile *objfile,
 	{
 	  info->destructor = munmap_section_buffer;
 	  info->buffer = retbuf + (sectp->filepos & (pagesize - 1)) ;
+	  posix_madvise (retbuf, map_length, POSIX_MADV_WILLNEED);
 	  return;
 	}
     }
@@ -3497,8 +3498,6 @@ build_type_psymtabs (struct objfile *objfile)
 static void
 dwarf2_build_psymtabs_hard (struct objfile *objfile, int mainline)
 {
-  /* Instead of reading this into a big buffer, we should probably use
-     mmap()  on architectures that support it. (FIXME) */
   bfd *abfd = objfile->obfd;
   gdb_byte *info_ptr;
   struct cleanup *back_to;


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


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