X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/994ed2bc552f4114b1f0c8dd3fd8aefaec6beeae..3c72c94aaeb98b0c4c1a98992539f8839cea1d74:/deps/jemalloc/doc/jemalloc.html?ds=sidebyside diff --git a/deps/jemalloc/doc/jemalloc.html b/deps/jemalloc/doc/jemalloc.html index b1ba461b..fc2ba878 100644 --- a/deps/jemalloc/doc/jemalloc.html +++ b/deps/jemalloc/doc/jemalloc.html @@ -1,8 +1,8 @@ -
jemalloc — general purpose memory allocation functions
This manual describes jemalloc 2.2.1-0-g5ef7abf6d846720fb3fb8c737861c99b5ad1d862. More information +
jemalloc — general purpose memory allocation functions
This manual describes jemalloc 2.2.5-0-gfc1bb70e5f0d9a58b39efa39cc549b5af5104760. More information can be found at the jemalloc website.
#include <stdlib.h
> -#include <jemalloc/jemalloc.h
>
void *malloc( | size_t size) ; |
void *calloc( | size_t number, |
size_t size) ; |
int posix_memalign( | void **ptr, |
size_t alignment, | |
size_t size) ; |
void *realloc( | void *ptr, |
size_t size) ; |
void free( | void *ptr) ; |
size_t malloc_usable_size( | const void *ptr) ; |
int mallctl( | const char *name, |
void *oldp, | |
size_t *oldlenp, | |
void *newp, | |
size_t newlen) ; |
int mallctlnametomib( | const char *name, |
size_t *mibp, | |
size_t *miblenp) ; |
int mallctlbymib( | const size_t *mib, |
size_t miblen, | |
void *oldp, | |
size_t *oldlenp, | |
void *newp, | |
size_t newlen) ; |
void (*malloc_message)( | void *cbopaque, |
const char *s) ; |
const char *malloc_conf
;
The malloc
() function allocates
size
bytes of uninitialized memory. The allocated
space is suitably aligned (after possible pointer coercion) for storage
of any type of object.
The calloc
() function allocates
@@ -32,7 +32,7 @@
malloc
() for the specified size.
The free
() function causes the
allocated memory referenced by
ptr
to be made
available for future allocations. If ptr
is
- NULL
, no action occurs.
The malloc_usable_size
() function
returns the usable size of the allocation pointed to by
ptr
. The return value may be larger than the size
that was requested during allocation. The
@@ -112,7 +112,7 @@ for (i = 0; i < nbins; i++) {
len = sizeof(bin_size);
mallctlbymib(mib, miblen, &bin_size, &len, NULL, 0);
/* Do something with bin_size... */
-}
The experimental API is subject to change or removal without regard for backward compatibility.
The allocm
(),
rallocm
(),
sallocm
(), and
@@ -1397,7 +1397,7 @@ malloc_conf = "xmalloc:true";
"swap.fds
"
(int *)
- r-
+ rw
[--enable-swap
]
When written to, the files associated with the specified file descriptors are contiguously mapped via @@ -1447,7 +1447,7 @@ malloc_conf = "xmalloc:true";
malloc_stats_print
(), followed by a string
pointer. Please note that doing anything which tries to allocate memory in
this function is likely to result in a crash or deadlock.
All messages are prefixed by
- “<jemalloc>:
”.
The malloc
() and
calloc
() functions return a pointer to the
allocated memory if successful; otherwise a
NULL
pointer is returned and errno
is set to
@@ -1467,7 +1467,7 @@ malloc_conf = "xmalloc:true";
allocation failure. The realloc
()
function always leaves the original buffer intact when an error occurs.
The free
() function returns no
- value.
The malloc_usable_size
() function
returns the usable size of the allocation pointed to by
ptr
.
The mallctl
(),
mallctlnametomib
(), and
@@ -1486,7 +1486,7 @@ malloc_conf = "xmalloc:true";
occurred.
An interface with side effects failed in some way
not directly related to mallctl*
()
read/write processing.
-