This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: Fix for PCH on many Linux platforms


"David S. Miller" <davem@redhat.com> writes:

> Ian Lance Taylor <ian@wasabisystems.com> wrote:
> 
> > I'm willing to believe you.
> 
> Don't, I'm actually wrong... crap, we do need relocation support
> I suppose.  Either that or the mincore()+MAP_FIXED thing like Solaris
> uses.

Note that when I tried to implement the mincore thing along the lines
of Solaris, it failed because the Linux mincore doesn't notice
anonymous mappings, such as the ones used by the ggc code.  This is
listed as a bug in the man page.  Perhaps it has been fixed in 2.6.

   "As of Linux 2.4.20, it is not possible to gain information on the
   core residency of pages which are not backed by a file.  In other
   words, calling mincore on a region returned by an anonymous mmap(2)
   specifying MAP_PRIVATE does not work and sets errno to ENOMEM."

Ian


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