| 1342 | } |
| 1343 | |
| 1344 | __attribute__((noinline)) void cbm_memev_da_note(size_t cap_bytes, size_t used_bytes, |
| 1345 | size_t cap_slots) { |
| 1346 | if (!cbm_memev_enabled() || cap_bytes == 0) { |
| 1347 | return; |
| 1348 | } |
| 1349 | uint64_t growths = 0; |
| 1350 | for (size_t c = 8; c < cap_slots; c <<= 1) { |
| 1351 | growths++; |
| 1352 | } |
| 1353 | cbm_work_note(CBM_WORK_CT_DYN_ARRAY, __builtin_return_address(0), cap_bytes, used_bytes, |
| 1354 | growths); |
| 1355 | } |
| 1356 | |
| 1357 | /* FNV-1a over the first bytes of a string of known length; the length is |
| 1358 | * mixed in, so two strings that share a long prefix still differ. */ |
nothing calls this directly
no test coverage detected