MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_default_memstat

Function acl_default_memstat

lib_acl/src/stdlib/memory/acl_default_malloc.c:141–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139#endif
140
141void acl_default_memstat(const char *filename, int line,
142 void *ptr, size_t *len, size_t *real_len)
143{
144 MBLOCK *real_ptr;
145 const char *pname = NULL;
146 size_t old_len;
147
148 if (filename && *filename)
149 SET_FILE(pname, filename);
150 else
151 pname = __FILENAME_UNKNOWN;
152
153 CHECK_PTR(ptr, real_ptr, old_len, pname, line);
154 if (len)
155 *len = real_ptr->length;
156 if (real_len)
157 *real_len = SPACE_FOR(*len);
158}
159
160void acl_default_meminfo(void)
161{

Callers 5

acl_realloc_glueFunction · 0.85
acl_free_glueFunction · 0.85
acl_free_fn_glueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…