[Gc] Small patch to allow initial and maximum heap sizes to be>2GB.

Talbot, George Gtalbot at locuspharma.com
Thu May 28 12:13:14 PDT 2009


OK...here you go... (at end of email)

--
George T. Talbot
<gtalbot at locuspharma.com>


> -----Original Message-----
> From: Ivan Maidanski [mailto:ivmai at mail.ru]
> Sent: Thursday, May 28, 2009 3:01 PM
> To: gc at linux.hpl.hp.com
> Cc: Talbot, George
> Subject: Re[2]: [Gc] Small patch to allow initial and maximum heap sizes
> to be>2GB.
>
> Hi!
>
> "Talbot, George" <Gtalbot at locuspharma.com> wrote:
> > I don't have the ability to build and test on Win32 for the GC.  Can you
> help me out with that part?
> >
> > Is strtoull() available on Win32?
>
> You mean strtoul(), right? Yes, it exists everywhere (including WinCE and
> DOS).
>
> But for _WIN64, please, use _strtoui64.
>
> Bye.


gtalbot at germanium:~/work/current/lcfs/gc-cvs/bdwgc$ cvs diff misc.c
Index: misc.c
===================================================================
RCS file: /cvsroot/bdwgc/bdwgc/misc.c,v
retrieving revision 1.25
diff -r1.25 misc.c
683a684,688
> #ifdef __GNUC__
>         initial_heap_sz = atoll(sz_str);
> #elif defined (_WIN64)
>       initial_heap_sz = _strtoui64(sz_str);
> #else
684a690
> #endif
695c701,707
<         word max_heap_sz = (word)atol(sz_str);
---
> #ifdef __GNUC__
>         word max_heap_sz = (word)atoll(sz_str);
> #elif defined (_WIN64)
>         word max_heap_sz = (word)_strtoui64(sz_str);
> #else
>         word max_heap_sz = (word)atoi(sz_str);
> #endif




More information about the Gc mailing list