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
@ -13,6 +13,8 @@ brevity. Much more detail can be found in the git revision history:
|
|||||||
when resizing from/to a size class that is not a multiple of the chunk size.
|
when resizing from/to a size class that is not a multiple of the chunk size.
|
||||||
- Fix prof_tctx_dump_iter() to filter out nodes that were created after heap
|
- Fix prof_tctx_dump_iter() to filter out nodes that were created after heap
|
||||||
profile dumping started.
|
profile dumping started.
|
||||||
|
- Work around a potentially bad thread-specific data initialization
|
||||||
|
interaction with NPTL (glibc's pthreads implementation).
|
||||||
|
|
||||||
* 4.0.2 (September 21, 2015)
|
* 4.0.2 (September 21, 2015)
|
||||||
|
|
||||||
|
@ -73,6 +73,9 @@ tsd_cleanup(void *arg)
|
|||||||
tsd_t *tsd = (tsd_t *)arg;
|
tsd_t *tsd = (tsd_t *)arg;
|
||||||
|
|
||||||
switch (tsd->state) {
|
switch (tsd->state) {
|
||||||
|
case tsd_state_uninitialized:
|
||||||
|
/* Do nothing. */
|
||||||
|
break;
|
||||||
case tsd_state_nominal:
|
case tsd_state_nominal:
|
||||||
#define O(n, t) \
|
#define O(n, t) \
|
||||||
n##_cleanup(tsd);
|
n##_cleanup(tsd);
|
||||||
|
Loading…
Reference in New Issue
Block a user