| 193 | } |
| 194 | |
| 195 | void |
| 196 | malloc_mutex_postfork_child(tsdn_t *tsdn, malloc_mutex_t *mutex) { |
| 197 | #ifdef JEMALLOC_MUTEX_INIT_CB |
| 198 | malloc_mutex_unlock(tsdn, mutex); |
| 199 | #else |
| 200 | if (malloc_mutex_init(mutex, mutex->witness.name, |
| 201 | mutex->witness.rank, mutex->lock_order)) { |
| 202 | malloc_printf("<jemalloc>: Error re-initializing mutex in " |
| 203 | "child\n"); |
| 204 | if (opt_abort) { |
| 205 | abort(); |
| 206 | } |
| 207 | } |
| 208 | #endif |
| 209 | } |
| 210 | |
| 211 | bool |
| 212 | malloc_mutex_boot(void) { |
no test coverage detected