mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
update comment
This commit is contained in:
parent
cc3c14f2ed
commit
1ebc28a8ff
1 changed files with 3 additions and 2 deletions
|
@ -130,8 +130,9 @@ void _mi_prim_thread_associate_default_heap(mi_heap_t* heap);
|
||||||
// If you test on another platform and it works please send a PR :-)
|
// If you test on another platform and it works please send a PR :-)
|
||||||
// see also https://akkadia.org/drepper/tls.pdf for more info on the TLS register.
|
// see also https://akkadia.org/drepper/tls.pdf for more info on the TLS register.
|
||||||
//
|
//
|
||||||
// Note: on most platforms this is not actually used anymore as we prefer `__builtin_thread_pointer()` nowadays.
|
// Note: we would like to prefer `__builtin_thread_pointer()` nowadays instead of using assembly,
|
||||||
// However, we do still use it with older clang compilers and Apple OS (as we use TLS slot for the default heap there).
|
// but unfortunately we can not detect support reliably (see issue #883)
|
||||||
|
// We also use it on Apple OS as we use a TLS slot for the default heap there.
|
||||||
#if defined(__GNUC__) && ( \
|
#if defined(__GNUC__) && ( \
|
||||||
(defined(__GLIBC__) && (defined(__x86_64__) || defined(__i386__) || defined(__arm__) || defined(__aarch64__))) \
|
(defined(__GLIBC__) && (defined(__x86_64__) || defined(__i386__) || defined(__arm__) || defined(__aarch64__))) \
|
||||||
|| (defined(__APPLE__) && (defined(__x86_64__) || defined(__aarch64__) || defined(__POWERPC__))) \
|
|| (defined(__APPLE__) && (defined(__x86_64__) || defined(__aarch64__) || defined(__POWERPC__))) \
|
||||||
|
|
Loading…
Add table
Reference in a new issue