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

Function my_large_malloc

mysys/my_largepage.c:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49*/
50
51uchar* my_large_malloc(size_t size, myf my_flags)
52{
53 uchar* ptr;
54 DBUG_ENTER("my_large_malloc");
55
56 if (my_use_large_pages && my_large_page_size)
57 {
58 if ((ptr = my_large_malloc_int(size, my_flags)) != NULL)
59 DBUG_RETURN(ptr);
60 if (my_flags & MY_WME)
61 fprintf(stderr, "Warning: Using conventional memory pool\n");
62 }
63
64 DBUG_RETURN(my_malloc_lock(size, my_flags));
65}
66
67/*
68 General large pages deallocator.

Callers 1

init_key_cacheFunction · 0.85

Calls 2

my_large_malloc_intFunction · 0.85
my_malloc_lockFunction · 0.85

Tested by

no test coverage detected