mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-04 03:22:14 +03:00
manual: Sort mallopt M_* parameters alphabetically
Sort the mallopt M_* parameters alphabetically and add comments for the missing paramters.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2013-03-17 Carlos O'Donell <carlos@redhat.com>
|
||||||
|
|
||||||
|
* manual/memory.texi (Malloc Tunable Parameters):
|
||||||
|
Sort parameters alphabetically. Add comments for missing entries.
|
||||||
|
|
||||||
2013-03-17 David S. Miller <davem@davemloft.net>
|
2013-03-17 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
* sysdeps/sparc/fpu/libm-test-ulps: Update.
|
* sysdeps/sparc/fpu/libm-test-ulps: Update.
|
||||||
|
@@ -683,25 +683,21 @@ parameter to be set, and @var{value} the new value to be set. Possible
|
|||||||
choices for @var{param}, as defined in @file{malloc.h}, are:
|
choices for @var{param}, as defined in @file{malloc.h}, are:
|
||||||
|
|
||||||
@table @code
|
@table @code
|
||||||
@item M_TRIM_THRESHOLD
|
@comment TODO: @item M_ARENA_MAX
|
||||||
This is the minimum size (in bytes) of the top-most, releasable chunk
|
@comment - Document ARENA_MAX env var.
|
||||||
that will cause @code{sbrk} to be called with a negative argument in
|
@comment TODO: @item M_ARENA_TEST
|
||||||
order to return memory to the system.
|
@comment - Document ARENA_TEST env var.
|
||||||
@item M_TOP_PAD
|
@comment TODO: @item M_CHECK_ACTION
|
||||||
This parameter determines the amount of extra memory to obtain from the
|
@item M_MMAP_MAX
|
||||||
system when a call to @code{sbrk} is required. It also specifies the
|
The maximum number of chunks to allocate with @code{mmap}. Setting this
|
||||||
number of bytes to retain when shrinking the heap by calling @code{sbrk}
|
to zero disables all use of @code{mmap}.
|
||||||
with a negative argument. This provides the necessary hysteresis in
|
|
||||||
heap size such that excessive amounts of system calls can be avoided.
|
|
||||||
@item M_MMAP_THRESHOLD
|
@item M_MMAP_THRESHOLD
|
||||||
All chunks larger than this value are allocated outside the normal
|
All chunks larger than this value are allocated outside the normal
|
||||||
heap, using the @code{mmap} system call. This way it is guaranteed
|
heap, using the @code{mmap} system call. This way it is guaranteed
|
||||||
that the memory for these chunks can be returned to the system on
|
that the memory for these chunks can be returned to the system on
|
||||||
@code{free}. Note that requests smaller than this threshold might still
|
@code{free}. Note that requests smaller than this threshold might still
|
||||||
be allocated via @code{mmap}.
|
be allocated via @code{mmap}.
|
||||||
@item M_MMAP_MAX
|
@comment TODO: @item M_MXFAST
|
||||||
The maximum number of chunks to allocate with @code{mmap}. Setting this
|
|
||||||
to zero disables all use of @code{mmap}.
|
|
||||||
@item M_PERTURB
|
@item M_PERTURB
|
||||||
If non-zero, memory blocks are filled with values depending on some
|
If non-zero, memory blocks are filled with values depending on some
|
||||||
low order bits of this parameter when they are allocated (except when
|
low order bits of this parameter when they are allocated (except when
|
||||||
@@ -710,6 +706,16 @@ use of uninitialized or freed heap memory. Note that this option does not
|
|||||||
guarantee that the freed block will have any specific values. It only
|
guarantee that the freed block will have any specific values. It only
|
||||||
guarantees that the content the block had before it was freed will be
|
guarantees that the content the block had before it was freed will be
|
||||||
overwritten.
|
overwritten.
|
||||||
|
@item M_TOP_PAD
|
||||||
|
This parameter determines the amount of extra memory to obtain from the
|
||||||
|
system when a call to @code{sbrk} is required. It also specifies the
|
||||||
|
number of bytes to retain when shrinking the heap by calling @code{sbrk}
|
||||||
|
with a negative argument. This provides the necessary hysteresis in
|
||||||
|
heap size such that excessive amounts of system calls can be avoided.
|
||||||
|
@item M_TRIM_THRESHOLD
|
||||||
|
This is the minimum size (in bytes) of the top-most, releasable chunk
|
||||||
|
that will cause @code{sbrk} to be called with a negative argument in
|
||||||
|
order to return memory to the system.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
@end deftypefun
|
@end deftypefun
|
||||||
|
Reference in New Issue
Block a user