Home | History | Annotate | Download | only in stdlib

Lines Matching defs:mspace

210   are versions of malloc routines that take an "mspace" argument
216 static mspace mymspace = create_mspace(0,0); // for example
219 (Note: If you only need one instance of an mspace, you can instead
224 static __thread mspace tlms = 0;
231 Unless FOOTERS is defined, each mspace is completely independent.
235 indicating its originating mspace, and frees are directed to their
260 If true, only compile in mspace versions, not regular versions.
265 overridden on a per-mspace basis for mspace versions.)
1041 mspace is an opaque type representing an independent
1044 typedef void* mspace;
1057 mspace create_mspace(size_t capacity, int locked);
1065 size_t destroy_mspace(mspace msp);
1069 of a new mspace. Part (less than 128*sizeof(size_t) bytes) of this
1076 mspace create_mspace_with_base(void* base, size_t capacity, int locked);
1082 void* mspace_malloc(mspace msp, size_t bytes);
1092 void mspace_free(mspace msp, void* mem);
1103 void* mspace_realloc(mspace msp, void* mem, size_t newsize);
1109 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1115 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes);
1121 void** mspace_independent_calloc(mspace msp, size_t n_elements,
1128 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
1135 size_t mspace_footprint(mspace msp);
1141 size_t mspace_max_footprint(mspace msp);
1149 struct mallinfo mspace_mallinfo(mspace msp);
1156 void mspace_malloc_stats(mspace msp);
1162 int mspace_trim(mspace msp, size_t pad);
2009 around every public call using this mspace.
2064 /* The global malloc_state used for all non-"mspace" calls */
3226 /* -------------------------- mspace management -------------------------- */
4436 mspace create_mspace(size_t capacity, int locked) {
4452 return (mspace)m;
4455 mspace create_mspace_with_base(void* base, size_t capacity, int locked) {
4466 return (mspace)m;
4469 size_t destroy_mspace(mspace msp) {
4491 mspace versions of routines are near-clones of the global
4496 void* mspace_malloc(mspace msp, size_t bytes) {
4610 void mspace_free(mspace msp, void* mem) {
4701 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) {
4721 void* mspace_realloc(mspace msp, void* oldmem, size_t bytes) {
4745 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes) {
4754 void** mspace_independent_calloc(mspace msp, size_t n_elements,
4765 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
4775 int mspace_trim(mspace msp, size_t pad) {
4790 void mspace_malloc_stats(mspace msp) {
4800 size_t mspace_footprint(mspace msp) {
4811 size_t mspace_max_footprint(mspace msp) {
4823 struct mallinfo mspace_mallinfo(mspace msp) {