From 02113e69f13021793ca8fe15d142ec369ced316e Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 27 Jul 2023 13:59:08 +0800 Subject: [PATCH] *: bump 0.5.4 (#62) Close #56 Signed-off-by: Jay Lee --- CHANGELOG.md | 7 +++++++ README.md | 2 +- jemalloc-ctl/Cargo.toml | 2 +- jemalloc-sys/Cargo.toml | 2 +- jemallocator/Cargo.toml | 2 +- jemallocator/src/lib.rs | 8 ++++---- 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bd3917..bcd561b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 0.5.4 - 2023-07-22 + +- Add disable_initial_exec_tls feature for jemalloc-ctl (#59) +- Fix definition of `c_bool` for non-MSVC targets (#54) +- Add `disable_cache_oblivious` feature (#51) +- Add loongarch64 support (#42) + # jemalloc-sys 0.5.3 - 2023-02-03 - Remove fs-extra dependency (#47) diff --git a/README.md b/README.md index 6a253db..e9e13e6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This project is the successor of [jemallocator](https://github.com/gnzlbg/jemallocator). -The project is published as `tikv-jemallocator` and `jemallocator` for historical reasons. The two crates are the same except names. It's OK to use either crate. But due to lack of permissions, only `jemallocator` and `jemalloc-sys` are updated. If you want to use other crates, `tikv-xxx` versions are still required. +The project is also published as `jemallocator` for historical reasons. The two crates are the same except names. For new projects, it's recommended to use `tikv-xxx` versions instead. > Links against `jemalloc` and provides a `Jemalloc` unit type that implements > the allocator APIs and can be set as the `#[global_allocator]` diff --git a/jemalloc-ctl/Cargo.toml b/jemalloc-ctl/Cargo.toml index 8db53a3..0375ef5 100644 --- a/jemalloc-ctl/Cargo.toml +++ b/jemalloc-ctl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tikv-jemalloc-ctl" -version = "0.5.0" +version = "0.5.4" authors = [ "Steven Fackler ", "Gonzalo Brito Gadeschi ", diff --git a/jemalloc-sys/Cargo.toml b/jemalloc-sys/Cargo.toml index 75b0670..0e854dd 100644 --- a/jemalloc-sys/Cargo.toml +++ b/jemalloc-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tikv-jemalloc-sys" -version = "0.5.3+5.3.0-patched" +version = "0.5.4+5.3.0-patched" authors = [ "Alex Crichton ", "Gonzalo Brito Gadeschi ", diff --git a/jemallocator/Cargo.toml b/jemallocator/Cargo.toml index 01e9837..010b99c 100644 --- a/jemallocator/Cargo.toml +++ b/jemallocator/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tikv-jemallocator" # Make sure to update the version in the README as well: -version = "0.5.0" +version = "0.5.4" authors = [ "Alex Crichton ", "Gonzalo Brito Gadeschi ", diff --git a/jemallocator/src/lib.rs b/jemallocator/src/lib.rs index 65d4783..165660e 100644 --- a/jemallocator/src/lib.rs +++ b/jemallocator/src/lib.rs @@ -42,14 +42,14 @@ use libc::{c_int, c_void}; // _Alignof(max_align_t), the malloc-APIs return memory whose alignment is // either the requested size if its a power-of-two, or the next smaller // power-of-two. -#[cfg(all(any( +#[cfg(any( target_arch = "arm", target_arch = "mips", target_arch = "mipsel", target_arch = "powerpc" -)))] +))] const ALIGNOF_MAX_ALIGN_T: usize = 8; -#[cfg(all(any( +#[cfg(any( target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64", @@ -60,7 +60,7 @@ const ALIGNOF_MAX_ALIGN_T: usize = 8; target_arch = "riscv64", target_arch = "s390x", target_arch = "sparc64" -)))] +))] const ALIGNOF_MAX_ALIGN_T: usize = 16; /// If `align` is less than `_Alignof(max_align_t)`, and if the requested