| 117 | } |
| 118 | |
| 119 | JEMALLOC_ALWAYS_INLINE bool |
| 120 | cache_bin_dalloc_easy(cache_bin_t *bin, cache_bin_info_t *bin_info, void *ptr) { |
| 121 | if (unlikely(bin->ncached == bin_info->ncached_max)) { |
| 122 | return false; |
| 123 | } |
| 124 | assert(bin->ncached < bin_info->ncached_max); |
| 125 | bin->ncached++; |
| 126 | *(bin->avail - bin->ncached) = ptr; |
| 127 | |
| 128 | return true; |
| 129 | } |
| 130 | |
| 131 | #endif /* JEMALLOC_INTERNAL_CACHE_BIN_H */ |
no outgoing calls
no test coverage detected