Question about mmap issues on FreeBSD/NetBSD

Mike Hearn mike at navi.cx
Fri Jul 30 08:30:14 CDT 2004


On Fri, 2004-07-30 at 09:36 +0200, Yorick Hardy wrote:
> Thanks for the response.
> 
> I must be doing something wrong, since wine-kthread gave the same error.
> Anything I may have missed? I copied wine-kthread from loader/wine-kthread.

In that case I guess it's the code which reserves the top 2gig which is
bailing out rather than the preloader, sorry ...

> It does not appear to be correct, but is there any chance
> madvise(..., MADV_DONTNEED) could help?

Possibly, I don't know ... it sounds like it'd do something similar to
MAP_NORESERVE though. Try it?

FWIW I think in FreeBSD ports that code is simply commented out.

> Also in libs/wine/mmap.c line 119 the result of mincore is never tested,
> should it not be
> 
>  if ( (mincore( (caddr_t)addr + i, pagesize, &vec ) != -1) && (vec&1) )  
> 
> (with a slight variation for FreeBSD), although I think this will not
> resolve the current problem.

thanks -mike




More information about the wine-devel mailing list