tag | 81013aeca09fcf7bfe158a059043ea3aad07cd4d | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 01 16:10:06 2024 -0700 |
object | 8a897f5dfc388abb274a896af3cf355cffaf8fdc |
Android 14.0.0 Release 30 (AP1A.240405.002)
commit | 8a897f5dfc388abb274a896af3cf355cffaf8fdc | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Nov 15 00:11:15 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Nov 15 00:11:15 2023 +0000 |
tree | 6ee7f81a49b1253ad675dc236c145c7cb18f16c0 | |
parent | 6acdffc0411ac8efe95c0ca72b27136cd0f88f64 [diff] | |
parent | 68da8abf9dd835bd0b38a0d93f2cea5ec3bd0186 [diff] |
Snap for 11097608 from 68da8abf9dd835bd0b38a0d93f2cea5ec3bd0186 to 24Q1-release Change-Id: Ida19433867b9d69ac7ddace8b64f38f2b1df163b
This crate provides epoch-based garbage collection for building concurrent data structures.
When a thread removes an object from a concurrent data structure, other threads may be still using pointers to it at the same time, so it cannot be destroyed immediately. Epoch-based GC is an efficient mechanism for deferring destruction of shared objects until no pointers to them can exist.
Everything in this crate except the global GC can be used in no_std
environments, provided that alloc
feature is enabled.
Add this to your Cargo.toml
:
[dependencies] crossbeam-epoch = "0.9"
Crossbeam Epoch supports stable Rust releases going back at least six months, and every time the minimum supported Rust version is increased, a new minor version is released. Currently, the minimum supported Rust version is 1.38.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.