MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / thread_memcreate_int

Function thread_memcreate_int

util/thread_malloc.c:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28static __thread comdb2ma m = NULL;
29static void thread_memcreate_int(size_t sz)
30{
31 m = comdb2ma_create(sz, COMDB2MA_UNLIMITED, "thread_malloc",
32 COMDB2MA_MT_UNSAFE);
33 if (m == NULL) {
34 logmsg(LOGMSG_FATAL, "%s: comdb2ma_create failed sz:%lu bytes\n", __func__,
35 sz);
36 abort();
37 }
38}
39
40void thread_memcreate(size_t sz)
41{

Callers 3

thread_memcreateFunction · 0.85
thread_memcreate_notraceFunction · 0.85

Calls 1

logmsgFunction · 0.70

Tested by

no test coverage detected