| 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 | { |
no test coverage detected