MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / malloc

Method malloc

deps/memkind/src/test/bat_tests.cpp:131–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 }
130
131 void malloc(size_t size)
132 {
133 void *ptr = allocator->malloc(size);
134 ASSERT_TRUE(ptr != NULL) << "malloc() returns NULL";
135 void *memset_ret = memset(ptr, 3, size);
136 EXPECT_TRUE(memset_ret != NULL);
137 record_page_association(ptr, size);
138 check_policy_and_numa_node(ptr, size);
139 allocator->free(ptr);
140 }
141
142 void calloc(size_t num, size_t size)
143 {

Callers 4

reallocMethod · 0.45
freeMethod · 0.45
test_mallocFunction · 0.45
memkind_mallocFunction · 0.45

Calls 2

record_page_associationFunction · 0.85
freeMethod · 0.45

Tested by

no test coverage detected