commit | b281e11c711089c0d6b0f544f4a7c26a0ebbd147 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Apr 08 01:05:28 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Apr 08 01:05:28 2021 +0000 |
tree | 8a77ea0f3a6051e5e0f59ab1e914dc60f550831a | |
parent | 687045517e7da8f917c32a4afa4dcd0821b5df8f [diff] | |
parent | c96afd9734396f433b77c2f03ebb7f772a6d61f6 [diff] |
Snap for 7266202 from c96afd9734396f433b77c2f03ebb7f772a6d61f6 to sc-v2-release Change-Id: I8a0e5e6b7745e2c7b8608a600b661746d7979612
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 features alloc
and nightly
are 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.36.
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.