[Gc] Small resubmitted patch for controlling unmapping
Ivan Maidanski
ivmai at mail.ru
Wed Aug 12 02:41:46 PDT 2009
Hi!
This small patch (superseding diff53) could be easily checked in "out-of-order".
The only thing it does is setting memory unmapping threshold value from an environment variable ("0" means no unmapping at all).
ChangeLog entries:
* allchblk.c (MUNMAP_THRESHOLD): Move macro definition out of
a function.
* allchblk.c (GC_unmap_threshold): New global variable definition
(initialized to MUNMAP_THRESHOLD).
* allchblk.c (GC_unmap_old): Use GC_unmap_threshold instead of
MUNMAP_THRESHOLD; skip unmapping if GC_unmap_threshold is 0.
* doc/README.environment (GC_UNMAP_THRESHOLD): Add information.
* misc.c (GC_unmap_threshold): New variable declaration.
* misc.c (GC_init_inner): Recognize "GC_UNMAP_THRESHOLD"
environment variable to set GC_unmap_threshold value (only if
USE_MUNMAP).
Bye.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?koi8-r?Q?diff118=5Fcvs?=
Type: application/octet-stream
Size: 3206 bytes
Desc: not available
Url : https://napali.hpl.hp.com/pipermail/gc/attachments/20090812/3acfd642/koi8-rQdiff1185Fcvs.obj
More information about the Gc
mailing list