[Wine] Re: Memory Limitations for WINE 1.1.33 under Mac OS Leopard

tpatko wineforum-user at winehq.org
Sun Sep 26 08:48:51 CDT 2010


I noticed in the loader/main.c that there seems to be some comment that it might be possible to set a build such that 3GB of memory can be allocated for a 32-bit process (through virtual memory mapping).

static void check_vmsplit( void *stack )
{
    if (stack < (void *)0x80000000)
    {
        /* if the stack is below 0x80000000, assume we can safely try a munmap there */
        if (munmap( (void *)0x80000000, 1 ) == -1 && errno == EINVAL)
            fprintf( stderr,
                     "Warning: memory above 0x80000000 doesn't seem to be accessible.\n"
                     "Wine requires a 3G/1G user/kernel memory split to work properly.\n" );
    }
}

If this is possible, are there some instructions on how to modify the source code and/or configuration after the build to support this?  Lastly, are these modification possible when building on Macintosh?

Cheers,

Thomas







More information about the wine-users mailing list