diff options
| author | Qi Wang <interwq@gwu.edu> | 2017-03-30 00:00:52 (GMT) |
|---|---|---|
| committer | Qi Wang <interwq@gmail.com> | 2017-04-04 07:34:49 (GMT) |
| commit | d3cda3423cd7ae47630833e4a888bdaf6a7bf8d9 (patch) | |
| tree | 2d2d1200ae1c7a84201fed491bb9477d5c46339a /include | |
| parent | 51d368295032910577d4f34b9ff99b3ed41544b9 (diff) | |
| download | jemalloc-d3cda3423cd7ae47630833e4a888bdaf6a7bf8d9.zip jemalloc-d3cda3423cd7ae47630833e4a888bdaf6a7bf8d9.tar.gz jemalloc-d3cda3423cd7ae47630833e4a888bdaf6a7bf8d9.tar.bz2 | |
Do proper cleanup for tsd_state_reincarnated.
Also enable arena_bind under non-nominal state, as the cleanup will be handled
correctly now.
Diffstat (limited to 'include')
| -rw-r--r-- | include/jemalloc/internal/tsd_inlines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/jemalloc/internal/tsd_inlines.h b/include/jemalloc/internal/tsd_inlines.h index 7d57b7d..7c3fba5 100644 --- a/include/jemalloc/internal/tsd_inlines.h +++ b/include/jemalloc/internal/tsd_inlines.h @@ -74,7 +74,8 @@ tsd_##n##_get(tsd_t *tsd) { \ } \ JEMALLOC_ALWAYS_INLINE void \ tsd_##n##_set(tsd_t *tsd, t n) { \ - assert(tsd->state == tsd_state_nominal); \ + assert(tsd->state == tsd_state_nominal || \ + tsd->state == tsd_state_reincarnated); \ tsd->n = n; \ } #define MALLOC_TSD_getset_no(n, t) |
