Add feature `disable_cache_oblivious` to jemallocator re-exports (#104)

Signed-off-by: Michael Rieder <mail@mrieder.ch>
This commit is contained in:
Michael Rieder 2024-10-16 09:38:51 +02:00 committed by strawberry
parent 04851ae000
commit d87938bfdd
2 changed files with 9 additions and 2 deletions

View File

@ -55,6 +55,7 @@ background_threads_runtime_support = ["tikv-jemalloc-sys/background_threads_runt
background_threads = ["tikv-jemalloc-sys/background_threads"] background_threads = ["tikv-jemalloc-sys/background_threads"]
unprefixed_malloc_on_supported_platforms = ["tikv-jemalloc-sys/unprefixed_malloc_on_supported_platforms"] unprefixed_malloc_on_supported_platforms = ["tikv-jemalloc-sys/unprefixed_malloc_on_supported_platforms"]
disable_initial_exec_tls = ["tikv-jemalloc-sys/disable_initial_exec_tls"] disable_initial_exec_tls = ["tikv-jemalloc-sys/disable_initial_exec_tls"]
disable_cache_oblivious = ["tikv-jemalloc-sys/disable_cache_oblivious"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = [] features = []

View File

@ -69,8 +69,14 @@ other targets are only tested on Rust nightly.
## Features ## Features
The `tikv-jemallocator` crate re-exports the [features of the `tikv-jemalloc-sys` This crate provides following cargo feature flags:
dependency](https://github.com/tikv/jemallocator/blob/master/jemalloc-sys/README.md).
* `alloc_trait` When the `alloc_trait` feature of this crate is enabled, it also implements the `Alloc` trait, allowing usage in collections.
* `default` feature is `background_threads_runtime_support`.
* The `tikv-jemallocator` crate re-exports the [features of the `tikv-jemalloc-sys`
dependency](https://github.com/tikv/jemallocator/blob/master/jemalloc-sys/README.md#features).
## License ## License