Home | History | Annotate | Download | only in src

Lines Matching defs:mspace

174   are versions of malloc routines that take an "mspace" argument
180 static mspace mymspace = create_mspace(0,0); // for example
183 (Note: If you only need one instance of an mspace, you can instead
188 static __thread mspace tlms = 0;
195 Unless FOOTERS is defined, each mspace is completely independent.
199 indicating its originating mspace, and frees are directed to their
224 If true, only compile in mspace versions, not regular versions.
229 overridden on a per-mspace basis for mspace versions.)
997 mspace is an opaque type representing an independent
1000 typedef void* mspace;
1013 mspace create_mspace(size_t capacity, int locked);
1021 size_t destroy_mspace(mspace msp);
1025 of a new mspace. Part (less than 128*sizeof(size_t) bytes) of this
1032 mspace create_mspace_with_base(void* base, size_t capacity, int locked);
1038 void* mspace_malloc(mspace msp, size_t bytes);
1048 void mspace_free(mspace msp, void* mem);
1059 void* mspace_realloc(mspace msp, void* mem, size_t newsize);
1065 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1071 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes);
1077 void** mspace_independent_calloc(mspace msp, size_t n_elements,
1084 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
1091 size_t mspace_footprint(mspace msp);
1097 size_t mspace_max_footprint(mspace msp);
1105 struct mallinfo mspace_mallinfo(mspace msp);
1112 void mspace_malloc_stats(mspace msp);
1118 int mspace_trim(mspace msp, size_t pad);
1999 around every public call using this mspace.
2054 /* The global malloc_state used for all non-"mspace" calls */
3214 /* -------------------------- mspace management -------------------------- */
4426 mspace create_mspace(size_t capacity, int locked) {
4442 return (mspace)m;
4445 mspace create_mspace_with_base(void* base, size_t capacity, int locked) {
4456 return (mspace)m;
4459 size_t destroy_mspace(mspace msp) {
4481 mspace versions of routines are near-clones of the global
4486 void* mspace_malloc(mspace msp, size_t bytes) {
4600 void mspace_free(mspace msp, void* mem) {
4691 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) {
4711 void* mspace_realloc(mspace msp, void* oldmem, size_t bytes) {
4735 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes) {
4744 void** mspace_independent_calloc(mspace msp, size_t n_elements,
4755 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
4765 int mspace_trim(mspace msp, size_t pad) {
4780 void mspace_malloc_stats(mspace msp) {
4790 size_t mspace_footprint(mspace msp) {
4801 size_t mspace_max_footprint(mspace msp) {
4813 struct mallinfo mspace_mallinfo(mspace msp) {