comparison man/internals/internals.texi @ 1096:2c2ff019dd33

[xemacs-hg @ 2002-11-11 15:56:18 by stephent] malloc urefs <8765v4yufk.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Mon, 11 Nov 2002 15:56:21 +0000
parents ccaf90c5a53a
children 9eddcb9548e2
comparison
equal deleted inserted replaced
1095:0d33547d9ed3 1096:2c2ff019dd33
3814 @code{mmap()} system call, the XEmacs version of @file{ralloc.c} uses 3814 @code{mmap()} system call, the XEmacs version of @file{ralloc.c} uses
3815 this to move memory around without actually having to block-copy it, 3815 this to move memory around without actually having to block-copy it,
3816 which can speed things up; but it can still cause noticeable performance 3816 which can speed things up; but it can still cause noticeable performance
3817 degradation.) 3817 degradation.)
3818 3818
3819 On Linux systems using @samp{glibc 2}, these strategies are built in to
3820 the so-called ``Doug Lea malloc.'' See, for example, Doug Lea's home
3821 page, especially @uref{http://gee.cs.oswego.edu/dl/html/malloc.html,``A
3822 Memory Allocator''}. The source file, @file{malloc.c} (available at the
3823 same place) is copiously (and usefully!) commented.
3824 @uref{http://www.malloc.de/,Wolfram Gloger's home page} may also be
3825 useful.
3826
3819 @file{free-hook.c} contains some debugging functions for checking for invalid 3827 @file{free-hook.c} contains some debugging functions for checking for invalid
3820 arguments to @code{free()}. 3828 arguments to @code{free()}.
3821 3829
3822 @file{vm-limit.c} contains some functions that warn the user when memory is 3830 @file{vm-limit.c} contains some functions that warn the user when memory is
3823 getting low. These are callback functions that are called by @file{gmalloc.c} 3831 getting low. These are callback functions that are called by @file{gmalloc.c}
3825 3833
3826 @file{getpagesize.h} provides a uniform interface for retrieving the size of a 3834 @file{getpagesize.h} provides a uniform interface for retrieving the size of a
3827 page in virtual memory. @file{mem-limits.h} provides a uniform interface for 3835 page in virtual memory. @file{mem-limits.h} provides a uniform interface for
3828 retrieving the total amount of available virtual memory. Both are 3836 retrieving the total amount of available virtual memory. Both are
3829 similar in spirit to the @file{sys*.h} files described in section J, below. 3837 similar in spirit to the @file{sys*.h} files described in section J, below.
3830
3831 3838
3832 3839
3833 @example 3840 @example
3834 blocktype.c 3841 blocktype.c
3835 blocktype.h 3842 blocktype.h