This is the mail archive of the gcc@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: Does ggc-page.c require MMAP_DEV_ZERO and MMAP_ANON?


"H. J. Lu" <hjl@lucon.org> writes:

> On Mon, Jun 23, 2003 at 09:21:15AM -0700, Zack Weinberg wrote:
>> "H. J. Lu" <hjl@lucon.org> writes:
>> 
>> > checking for working mmap from /dev/zero... no
>> > checking for working mmap with MAP_ANON(YMOUS)... no
>> >
>> > As the result, I had
>> >
>> > /* #undef HAVE_MMAP_DEV_ZERO */
>> > /* #undef HAVE_MMAP_ANON */
>> > #define HAVE_MMAP_FILE 1
>> >
>> > in auto-host.h. Apparently, ggc-page.c doesn't work too well with
>> > this configuration.
>> 
>> This would be xvalloc mode, which is _supposed_ to work, but is rarely
>> if ever tested.  Can you try to debug it a bit more?
>> 
>
> I can no longer duplicate the problem. It must be a very tricky bug.
> I didn't notice mmap was not used for several weeks and there were
> no problems. It must be a very rare case.

Bleah.

Well, if the RM is okay with it, I'll be happy to put the
configure-check rewrite into 3.3, which will at least thoroughly
plaster over the problem.

zw


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