Lines Matching defs:mspace
180 are versions of malloc routines that take an "mspace" argument
186 static mspace mymspace = create_mspace(0,0); // for example
189 (Note: If you only need one instance of an mspace, you can instead
194 static __thread mspace tlms = 0;
201 Unless FOOTERS is defined, each mspace is completely independent.
205 indicating its originating mspace, and frees are directed to their
241 If true, only compile in mspace versions, not regular versions.
246 overridden on a per-mspace basis for mspace versions.) If set to a
1120 mspace is an opaque type representing an independent
1123 typedef void* mspace;
1136 mspace create_mspace(size_t capacity, int locked);
1144 size_t destroy_mspace(mspace msp);
1148 of a new mspace. Part (less than 128*sizeof(size_t) bytes) of this
1155 mspace create_mspace_with_base(void* base, size_t capacity, int locked);
1160 others in this mspace. By default large chunks are not tracked,
1168 int mspace_track_large_chunks(mspace msp, int enable);
1175 void* mspace_malloc(mspace msp, size_t bytes);
1185 void mspace_free(mspace msp, void* mem);
1196 void* mspace_realloc(mspace msp, void* mem, size_t newsize);
1202 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1208 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes);
1214 void** mspace_independent_calloc(mspace msp, size_t n_elements,
1221 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
1228 size_t mspace_footprint(mspace msp);
1234 size_t mspace_max_footprint(mspace msp);
1242 struct mallinfo mspace_mallinfo(mspace msp);
1254 void mspace_malloc_stats(mspace msp);
1260 int mspace_trim(mspace msp, size_t pad);
1621 one per-mspace lock.
1631 Per-mspace locks surround calls to malloc, free, etc. To enable use
1632 in layered extensions, per-mspace locks are reentrant.
2430 around every public call using this mspace.
2498 /* The global malloc_state used for all non-"mspace" calls */
3727 /* -------------------------- mspace management -------------------------- */
4975 mspace create_mspace(size_t capacity, int locked) {
4991 return (mspace)m;
4994 mspace create_mspace_with_base(void* base, size_t capacity, int locked) {
5005 return (mspace)m;
5008 int mspace_track_large_chunks(mspace msp, int enable) {
5023 size_t destroy_mspace(mspace msp) {
5045 mspace versions of routines are near-clones of the global
5050 void* mspace_malloc(mspace msp, size_t bytes) {
5164 void mspace_free(mspace msp, void* mem) {
5265 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) {
5285 void* mspace_realloc(mspace msp, void* oldmem, size_t bytes) {
5309 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes) {
5318 void** mspace_independent_calloc(mspace msp, size_t n_elements,
5329 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
5339 int mspace_trim(mspace msp, size_t pad) {
5354 void mspace_malloc_stats(mspace msp) {
5364 size_t mspace_footprint(mspace msp) {
5377 size_t mspace_max_footprint(mspace msp) {
5391 struct mallinfo mspace_mallinfo(mspace msp) {