[Gc] RE: Patch to allow initial/maximum heap sizes to be larger
Gtalbot at locuspharma.com
Tue Jun 9 06:57:43 PDT 2009
Thanks for your help with that one.
George T. Talbot
<gtalbot at locuspharma.com>
> -----Original Message-----
> From: Ivan Maidanski [mailto:ivmai at mail.ru]
> Sent: Tuesday, June 09, 2009 4:02 AM
> To: gc at linux.hpl.hp.com
> Cc: Talbot, George
> Subject: Patch to allow initial/maximum heap sizes to be larger than 2GB
> This patch replaces strtoull/atoi/atol() for word type with STRTOULL().
> The patch emerges from the discussion:
> Another thing: support for Android is added (taken from mono project).
> ChangeLog entries:
> * include/private/gcconfig.h (PLATFORM_ANDROID): New macro
> recognized (for Linux on ARM32 without glibc).
> * include/private/gcconfig.h (STRTOULL): Define for all targets
> (define as "strtoul" for most targets except for LLP64/Win64).
> * misc.c (GC_init_inner): Use STRTOULL instead of atoi/atol()
> (cast the result to word type) to decode values of "GC_TRACE",
> "GC_INITIAL_HEAP_SIZE", "GC_MAXIMUM_HEAP_SIZE" environment vars.
More information about the Gc