• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/dmalloc/

Lines Matching refs:mspace

190   are versions of malloc routines that take an "mspace" argument
196 static mspace mymspace = create_mspace(0,0); // for example
199 (Note: If you only need one instance of an mspace, you can instead
204 static __thread mspace tlms = 0;
211 Unless FOOTERS is defined, each mspace is completely independent.
215 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.) If set to a
1296 mspace is an opaque type representing an independent
1299 typedef void* mspace;
1312 DLMALLOC_EXPORT mspace create_mspace(size_t capacity, int locked);
1320 DLMALLOC_EXPORT size_t destroy_mspace(mspace msp);
1324 of a new mspace. Part (less than 128*sizeof(size_t) bytes) of this
1331 DLMALLOC_EXPORT mspace create_mspace_with_base(void* base, size_t capacity, int locked);
1336 others in this mspace. By default large chunks are not tracked,
1344 DLMALLOC_EXPORT int mspace_track_large_chunks(mspace msp, int enable);
1351 DLMALLOC_EXPORT void* mspace_malloc(mspace msp, size_t bytes);
1361 DLMALLOC_EXPORT void mspace_free(mspace msp, void* mem);
1372 DLMALLOC_EXPORT void* mspace_realloc(mspace msp, void* mem, size_t newsize);
1378 DLMALLOC_EXPORT void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1384 DLMALLOC_EXPORT void* mspace_memalign(mspace msp, size_t alignment, size_t bytes);
1390 DLMALLOC_EXPORT void** mspace_independent_calloc(mspace msp, size_t n_elements,
1397 DLMALLOC_EXPORT void** mspace_independent_comalloc(mspace msp, size_t n_elements,
1404 DLMALLOC_EXPORT size_t mspace_footprint(mspace msp);
1410 DLMALLOC_EXPORT size_t mspace_max_footprint(mspace msp);
1418 DLMALLOC_EXPORT struct mallinfo mspace_mallinfo(mspace msp);
1430 DLMALLOC_EXPORT void mspace_malloc_stats(mspace msp);
1436 DLMALLOC_EXPORT int mspace_trim(mspace msp, size_t pad);
1816 one per-mspace lock.
1826 Per-mspace locks surround calls to malloc, free, etc.
2623 around every public call using this mspace.
2692 /* The global malloc_state used for all non-"mspace" calls */
3953 /* -------------------------- mspace management -------------------------- */
5482 mspace create_mspace(size_t capacity, int locked) {
5498 return (mspace)m;
5501 mspace create_mspace_with_base(void* base, size_t capacity, int locked) {
5512 return (mspace)m;
5515 int mspace_track_large_chunks(mspace msp, int enable) {
5532 size_t destroy_mspace(mspace msp) {
5556 mspace versions of routines are near-clones of the global
5560 void* mspace_malloc(mspace msp, size_t bytes) {
5674 void mspace_free(mspace msp, void* mem) {
5775 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) {
5795 void* mspace_realloc(mspace msp, void* oldmem, size_t bytes) {
5840 void* mspace_realloc_in_place(mspace msp, void* oldmem, size_t bytes) {
5872 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes) {
5883 void** mspace_independent_calloc(mspace msp, size_t n_elements,
5894 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
5904 size_t mspace_bulk_free(mspace msp, void* array[], size_t nelem) {
5909 void mspace_inspect_all(mspace msp,
5928 int mspace_trim(mspace msp, size_t pad) {
5944 void mspace_malloc_stats(mspace msp) {
5955 size_t mspace_footprint(mspace msp) {
5967 size_t mspace_max_footprint(mspace msp) {
5979 size_t mspace_footprint_limit(mspace msp) {
5992 size_t mspace_set_footprint_limit(mspace msp, size_t bytes) {
6011 struct mallinfo mspace_mallinfo(mspace msp) {