purpleprotocol / mimalloc_rust

A Rust wrapper over Microsoft's MiMalloc memory allocator
MIT License
486 stars 42 forks source link

Introduce local_dynamic_tls feature #38

Closed lblasc closed 3 years ago

lblasc commented 3 years ago

Hello,

We are experiencing cannot allocate memory in static TLS block error when trying to dlopen shared libraries built with mimalloc, same thing is happening with jemallocator but we can solve it by disable_initial_exec_tls feature flag. For more information see: https://github.com/microsoft/mimalloc/issues/147

This pull request adds new feature flag with name consistent with cmake build flag, local_dynamic_tls.

octavonce commented 3 years ago

Hi and thank you for opening this PR!

This looks good and can be merged right away. Doing so now...

octavonce commented 3 years ago

Hi and thank you for opening this PR!

This looks good and can be merged right away. Doing so now...