The default data mem allocator malloc routine does not make use of a ctx. It should be called only through PyDataMem_UserNEW since itself does not handle eventhook and tracemalloc logic.
| 365 | // It should be called only through PyDataMem_UserNEW |
| 366 | // since itself does not handle eventhook and tracemalloc logic. |
| 367 | static inline void * |
| 368 | default_malloc(void *NPY_UNUSED(ctx), size_t size) |
| 369 | { |
| 370 | return _npy_alloc_cache(size, 1, NBUCKETS, datacache, &malloc); |
| 371 | } |
| 372 | |
| 373 | // The default data mem allocator calloc routine does not make use of a ctx. |
| 374 | // It should be called only through PyDataMem_UserNEW_ZEROED |
nothing calls this directly
no test coverage detected