Skip to content

Commit

Permalink
Replace global allocator for model checking
Browse files Browse the repository at this point in the history
  • Loading branch information
sgdxbc committed Jul 8, 2024
1 parent 8983a7c commit 6df05e0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"consts",
"endianness",
"Hasher",
"Jemalloc",
"jemallocator",
"keypair",
"kvstore",
"linearizable",
Expand All @@ -30,6 +32,7 @@
"Secp256k1",
"seedable",
"serde",
"tikv",
"unreplicated",
"upcall",
"upcalls"
Expand Down
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.120"
sha2 = "0.10.8"
tokio = { version = "1.38.0", features = ["macros", "net", "rt", "signal", "sync", "time"] }

[dev-dependencies]
tikv-jemallocator = "0.5.4"
3 changes: 3 additions & 0 deletions examples/unreplicated-check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ use neatworks::{
};
use rand::thread_rng;

#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

fn main() -> anyhow::Result<()> {
println!("* Single client; Put, Append, Get");
let mut state = State::new()?;
Expand Down

0 comments on commit 6df05e0

Please sign in to comment.