Allocate memory or panic */
| 128 | |
| 129 | /* Allocate memory or panic */ |
| 130 | void *zmalloc(size_t size, enum MALLOC_CLASS /*mclass*/) { |
| 131 | void *ptr = ztrymalloc_usable(size, NULL); |
| 132 | if (!ptr) zmalloc_oom_handler(size); |
| 133 | return ptr; |
| 134 | } |
| 135 | |
| 136 | /* Try allocating memory, and return NULL if failed. */ |
| 137 | void *ztrymalloc(size_t size) { |
no test coverage detected