mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-02 10:07:51 +03:00
Enforce TLS_MODEL attribute.
Caught by @zoulasc in #1460. The attribute needs to be added in the headers as well.
This commit is contained in:
parent
21cfe59ff7
commit
1aabab5fdc
3 changed files with 10 additions and 6 deletions
|
|
@ -3,8 +3,10 @@
|
|||
#endif
|
||||
#define JEMALLOC_INTERNAL_TSD_MALLOC_THREAD_CLEANUP_H
|
||||
|
||||
extern __thread tsd_t tsd_tls;
|
||||
extern __thread bool tsd_initialized;
|
||||
#define JEMALLOC_TSD_TYPE_ATTR(type) __thread type JEMALLOC_TLS_MODEL
|
||||
|
||||
extern JEMALLOC_TSD_TYPE_ATTR(tsd_t) tsd_tls;
|
||||
extern JEMALLOC_TSD_TYPE_ATTR(bool) tsd_initialized;
|
||||
extern bool tsd_booted;
|
||||
|
||||
/* Initialization/cleanup. */
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@
|
|||
#endif
|
||||
#define JEMALLOC_INTERNAL_TSD_TLS_H
|
||||
|
||||
extern __thread tsd_t tsd_tls;
|
||||
#define JEMALLOC_TSD_TYPE_ATTR(type) __thread type JEMALLOC_TLS_MODEL
|
||||
|
||||
extern JEMALLOC_TSD_TYPE_ATTR(tsd_t) tsd_tls;
|
||||
extern pthread_key_t tsd_tsd;
|
||||
extern bool tsd_booted;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue