MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / negative_stat

Function negative_stat

3rd/mimalloc-2.0.9/test/main-override-static.c:190–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188
189
190static void negative_stat(void) {
191 int* p = mi_malloc(60000);
192 mi_stats_print_out(NULL, NULL);
193 *p = 100;
194 mi_free(p);
195 mi_stats_print_out(NULL, NULL);
196}
197
198static void alloc_huge(void) {
199 void* p = mi_malloc(67108872);

Callers

nothing calls this directly

Calls 3

mi_mallocFunction · 0.85
mi_stats_print_outFunction · 0.85
mi_freeFunction · 0.85

Tested by

no test coverage detected