| 226 | } |
| 227 | |
| 228 | static bool |
| 229 | pac_shrink_impl(tsdn_t *tsdn, pai_t *self, edata_t *edata, size_t old_size, |
| 230 | size_t new_size, bool *deferred_work_generated) { |
| 231 | pac_t *pac = (pac_t *)self; |
| 232 | ehooks_t *ehooks = pac_ehooks_get(pac); |
| 233 | |
| 234 | size_t shrink_amount = old_size - new_size; |
| 235 | |
| 236 | if (ehooks_split_will_fail(ehooks)) { |
| 237 | return true; |
| 238 | } |
| 239 | |
| 240 | edata_t *trail = extent_split_wrapper(tsdn, pac, ehooks, edata, |
| 241 | new_size, shrink_amount, /* holding_core_locks */ false); |
| 242 | if (trail == NULL) { |
| 243 | return true; |
| 244 | } |
| 245 | ecache_dalloc(tsdn, pac, ehooks, &pac->ecache_dirty, trail); |
| 246 | *deferred_work_generated = true; |
| 247 | return false; |
| 248 | } |
| 249 | |
| 250 | static void |
| 251 | pac_dalloc_impl(tsdn_t *tsdn, pai_t *self, edata_t *edata, |
nothing calls this directly
no test coverage detected