This is the mail archive of the gcc-bugs@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]

[Bug pch/14940] PCH largefile test fails on various platforms


------- Additional Comments From ian at wasabisystems dot com  2004-07-17 14:43 -------
I should add that always using MAP_FIXED will cause the new mmap to clobber any
existing memory maps, which will lead to silent failure if the GC code (or the
library malloc code) happens to have mapped any portion of that memory space. 
So using MAP_FIXED does not work in general.  For an example of how it can be
used on some systems, see gcc/config/host-solaris.c, which uses mincore() to
explicitly check whether anything else is mapped in that address space.  But
note that that code does not work on, e.g., GNU/Linux, because mincore() does
not work as expected--it does not detect anonymous maps.

-- 


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


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