Why reserve space below 2G without preloader? wrt. patch 1aa749d & bug 22033

Alexandre Julliard julliard at winehq.org
Mon May 3 13:22:03 CDT 2010

"Johann \"Myrkraverk\" Oskarsson" <johann at myrkraverk.com> writes:

> Hi all,
> Out of sheer curiousity, why is it important to reserve space below 2G
> when there is no preloader?
> Patch 1aa749d, is
>     libwine: Reserve some low memory space even without a preloader.
> has the comment:
> /* if we don't have a preloader, try to reserve some space below 2Gb */
> and is the regression for bug 22033.
> http://bugs.winehq.org/show_bug.cgi?id=22033
> I will be trying to determine the excact cause of the bug later.

It's needed for apps that look for free space before allocating, instead
of simply accepting the VirtualAlloc return value. .NET is the main

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list