[Gc] Patch to allow initial/maximum heap sizes to be larger than 2GB

Ivan Maidanski ivmai at mail.ru
Tue Jun 9 01:02:09 PDT 2009


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?koi8-r?Q?diff95=5Fcvs?=
Type: application/octet-stream
Size: 2513 bytes
Desc: not available
Url : https://napali.hpl.hp.com/pipermail/gc/attachments/20090609/ff9f4e89/koi8-rQdiff955Fcvs.obj

More information about the Gc mailing list