Non-working patch for 3GB of memory allocation

Shachar Shemesh wine-devel at shemesh.biz
Wed Jul 28 11:44:16 CDT 2004


Alexandre Julliard wrote:

>Shachar Shemesh <wine-devel at shemesh.biz> writes:
>
>  
>
>>Alexandre Julliard wrote:
>>
>>    
>>
>>>That's why we don't use malloc in Wine...
>>>
>>>      
>>>
>>http://source.winehq.org/source/dlls/ntdll/virtual.c#L373 says otherwise.
>>    
>>
>
>Yes there are a few exceptions, because we obviously can't allocate
>from the process heap in the code that creates it.
>
I'm not sure about that. After all, that's what malloc does `-). Still, 
it's not crucial.

> Also Unix libraries
>will sometimes call malloc.
>  
>
Yes, I guess they do. That means that malloc is fighting with us on the 
2GB space we have :-(

>>>1Gb we need to manage this ourselves, or fix the kernel memory
>>>allocation algorithm. Fixing the kernel is a lot easier.
>>>
>>>      
>>>
>>Surely you mean "technologically easier", right?
>>    
>>
>
>Well, yes, but it's also the right place to do it.
>  
>
A friend found me http://lwn.net/Articles/90087/. There is hope yet :-)

             Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/




More information about the wine-devel mailing list