| 46 | } |
| 47 | |
| 48 | JEMALLOC_ALWAYS_INLINE void |
| 49 | tsd_set(tsd_t *val) { |
| 50 | assert(tsd_booted); |
| 51 | if (likely(&tsd_tls != val)) { |
| 52 | tsd_tls = (*val); |
| 53 | } |
| 54 | if (pthread_setspecific(tsd_tsd, (void *)(&tsd_tls)) != 0) { |
| 55 | malloc_write("<jemalloc>: Error setting tsd.\n"); |
| 56 | if (opt_abort) { |
| 57 | abort(); |
| 58 | } |
| 59 | } |
| 60 | } |
no test coverage detected