Wine memory bug with patch?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
downer
Level 1
Level 1
Posts: 6
Joined: Tue Jul 22, 2008 8:04 pm

Wine memory bug with patch?

Post by downer »

I'm assuming from what I've read in the forums that Wine reserves 1GB for Linux and can't allocate more than 3GB for Windows programs without a patch. I replaced

"dlls/ntdll/virtual.c"

# define ADDRESS_SPACE_LIMIT ((void *)0xc0000000) /* top of the total available address space */
# define USER_SPACE_LIMIT ((void *)0x7fff0000) /* top of the user address space */

with

# define ADDRESS_SPACE_LIMIT 0 /* no limit needed on other platforms */
# define USER_SPACE_LIMIT 0 /* no limit needed on other platforms */

When I compile something without this patch, Wine seems to use the Linux swapfile before it uses the 1GB Wine reserves for Linux. But, when I use this patch, Wine seems to go into the 1GB reserved for Linux and corrupts what I'm trying to compile.

With this patch, is there a way to keep Windows programs from using the 1GB reserved for Linux, and using the swapfile instead?
Locked