mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 17:17:19 +03:00
Work around an NPTL-specific TSD issue.
Work around a potentially bad thread-specific data initialization interaction with NPTL (glibc's pthreads implementation). This resolves #283.
This commit is contained in:
parent
03eb37e8fd
commit
d36c7ebb00
2 changed files with 5 additions and 0 deletions
|
|
@ -73,6 +73,9 @@ tsd_cleanup(void *arg)
|
|||
tsd_t *tsd = (tsd_t *)arg;
|
||||
|
||||
switch (tsd->state) {
|
||||
case tsd_state_uninitialized:
|
||||
/* Do nothing. */
|
||||
break;
|
||||
case tsd_state_nominal:
|
||||
#define O(n, t) \
|
||||
n##_cleanup(tsd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue