http://bugs.winehq.org/show_bug.cgi?id=16061
--- Comment #7 from Jon Burgess jburgess777@googlemail.com 2008-11-17 16:38:02 --- I dropped the limit to 128MB and now the simple test program fails at 1900MB.
Setting the LARGE_ADDRESS_AWARE flag does not seem to make any difference though:
$ i686-pc-mingw32-gcc -o test.exe test.c -Wl,--large-address-aware $ i686-pc-mingw32-objdump -p test.exe | grep large large address aware $ wine ./test.exe ... Allocated 100MB of data in 1.93 seconds (51.79MB/s) malloc(4096) failed at 1900Mb
This is with wine-1.1.6 + your patch, adjusted to 128MB. It is a 64 bit host w/ 4GB of RAM + 6GB swap.
Any ideas?