MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / sql_alloc

Function sql_alloc

sql/thr_malloc.cc:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38void *sql_alloc(size_t Size)
39{
40 MEM_ROOT *root= *my_pthread_getspecific_ptr(MEM_ROOT**,THR_MALLOC);
41 return alloc_root(root,Size);
42}
43
44
45void *sql_calloc(size_t size)

Callers 15

sql_callocFunction · 0.85
sql_strdupFunction · 0.85
sql_strmakeFunction · 0.85
sql_memdupFunction · 0.85
sql_strmake_with_convertFunction · 0.85
set_argumentsMethod · 0.85
operator newMethod · 0.85
Item_funcMethod · 0.85
add_backpatch_entryMethod · 0.85
operator newMethod · 0.85
operator newMethod · 0.85
operator newMethod · 0.85

Calls 1

alloc_rootFunction · 0.85

Tested by

no test coverage detected