On second thoughts, alloc_limit needs to be signed.

>     * This is an integer, because we might update it in a place where

  >     * it isn't convenient to raise the exception, so we want it to

  >     * stay negative until we get around to checking it.


This only leaves 2^31 bytes = 2GB.

I suppose the problem is more complex than I thought.


On 4 May 2014 17:50, William Kenyon <g...@abacathoo.org> wrote:

> According to google,
>
> 2^32 bytes = 4GB,
>
> I think that is more memory than a 32 bit machine can handle anyway?
>
> Maybe alloc_limit should be 32 bits on a 32 bit machine, and 64 bit on a
> 64 bit machine?
>
>
> On 4 May 2014 16:06, Johan Tibell <johan.tib...@gmail.com> wrote:
>
>> On Sun, May 4, 2014 at 5:45 PM, Sergei Trofimovich <sly...@gmail.com>wrote:
>>>
>>> Does it make sense to have 64-bit alloc_limit on 32-bit box?
>>>
>>
>> I think so. You allocate 2^32 bytes pretty quickly.
>>
>> _______________________________________________
>> ghc-devs mailing list
>> ghc-devs@haskell.org
>> http://www.haskell.org/mailman/listinfo/ghc-devs
>>
>>
>
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to