commit | 687045517e7da8f917c32a4afa4dcd0821b5df8f | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Mar 24 01:04:54 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Mar 24 01:04:54 2021 +0000 |
tree | 5acd825f51212c9721aaf50473fe74f3ab84640a | |
parent | 567d9751629b29f222428b8454fc74be1a754cdd [diff] | |
parent | 7f2f7ae014ecf58b07ec4d40bc071caca3a9f0c8 [diff] |
Snap for 7230642 from 7f2f7ae014ecf58b07ec4d40bc071caca3a9f0c8 to sc-v2-release Change-Id: Id5e3c0cbf48b74f91cd92e1950db35aa8928262b
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.