Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: purpleprotocol/mimalloc_rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.43
Choose a base ref
...
head repository: purpleprotocol/mimalloc_rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.44
Choose a head ref
  • 6 commits
  • 5 files changed
  • 3 contributors

Commits on Aug 25, 2024

  1. feat: use env to adapt to more general scenarios for atomic

    richerfu committed Aug 25, 2024
    Copy the full SHA
    e638bd6 View commit details

Commits on Sep 2, 2024

  1. Merge pull request #126 from richerfu/master

    feat: use env to adapt to more general scenarios for atomic
    octavonce authored Sep 2, 2024
    Copy the full SHA
    cc1c72a View commit details

Commits on Mar 18, 2025

  1. Update to mimalloc v2.2.2

    octavonce committed Mar 18, 2025
    Copy the full SHA
    c00538a View commit details
  2. Clippy

    octavonce committed Mar 18, 2025
    Copy the full SHA
    f37c56a View commit details
  3. Patch windows

    octavonce committed Mar 18, 2025
    Copy the full SHA
    3e7e321 View commit details
  4. v0.1.44

    octavonce committed Mar 18, 2025
    Copy the full SHA
    bbf6130 View commit details
Showing with 13 additions and 7 deletions.
  1. +2 −2 Cargo.toml
  2. +1 −1 libmimalloc-sys/Cargo.toml
  3. +5 −1 libmimalloc-sys/build.rs
  4. +1 −1 libmimalloc-sys/c_src/mimalloc
  5. +4 −2 libmimalloc-sys/src/extended.rs
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mimalloc"
version = "0.1.43"
version = "0.1.44"
authors = [
"Octavian Oncescu <octavonce@gmail.com>",
"Vincent Rouillé <vincent@speedy37.fr>",
@@ -21,7 +21,7 @@ members = ["libmimalloc-sys", "libmimalloc-sys/sys-test"]
travis-ci = { repository = "purpleprotocol/mimalloc_rust" }

[dependencies]
libmimalloc-sys = { path = "libmimalloc-sys", version = "0.1.39", default-features = false }
libmimalloc-sys = { path = "libmimalloc-sys", version = "0.1.40", default-features = false }

[features]
default = []
2 changes: 1 addition & 1 deletion libmimalloc-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libmimalloc-sys"
version = "0.1.39"
version = "0.1.40"
authors = ["Octavian Oncescu <octavonce@gmail.com>"]
edition = "2018"
repository = "https://github.com/purpleprotocol/mimalloc_rust/tree/master/libmimalloc-sys"
6 changes: 5 additions & 1 deletion libmimalloc-sys/build.rs
Original file line number Diff line number Diff line change
@@ -57,6 +57,10 @@ fn main() {

// on armv6 we need to link with libatomic
if target_os == "linux" && target_arch == "arm" {
println!("cargo:rustc-link-lib=atomic");
// Embrace the atomic capability library across various platforms.
// For instance, on certain platforms, llvm has relocated the atomic of the arm32 architecture to libclang_rt.builtins.a
// while some use libatomic.a, and others use libatomic_ops.a.
let atomic_name = env::var("DEP_ATOMIC").unwrap_or("atomic".to_owned());
println!("cargo:rustc-link-lib={}", atomic_name);
}
}
2 changes: 1 addition & 1 deletion libmimalloc-sys/c_src/mimalloc
Submodule mimalloc updated 201 files
6 changes: 4 additions & 2 deletions libmimalloc-sys/src/extended.rs
Original file line number Diff line number Diff line change
@@ -488,7 +488,7 @@ pub const mi_option_show_stats: mi_option_t = 1;
pub const mi_option_verbose: mi_option_t = 2;

/// ### The following options are experimental
///
/// Option (experimental) Use large OS pages (2MiB in size) if possible.
///
/// Use large OS pages (2MiB) when available; for some workloads this can
@@ -546,7 +546,7 @@ pub const mi_option_max_warnings: mi_option_t = 20;
pub const mi_option_max_segment_reclaim: mi_option_t = 21;

/// Last option.
pub const _mi_option_last: mi_option_t = 29;
pub const _mi_option_last: mi_option_t = 37;

extern "C" {
// Note: mi_option_{enable,disable} aren't exposed because they're redundant
@@ -657,6 +657,8 @@ pub struct mi_heap_area_t {
pub block_size: usize,
/// Size in bytes of a full block including padding and metadata.
pub full_block_size: usize,
/// Heap tag associated with this area
pub heap_tag: i32,
}

/// Visitor function passed to [`mi_heap_visit_blocks`]