Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade crossbeam-epoch from v0.9.x to v0.8.x #33

Merged
merged 6 commits into from
Sep 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@

### Fixed

- Fix `get_or_insert_with` and `get_or_try_insert_with` methods in `future::Cache`
can lead undefined behavior as accepting `init` future that is not `Send` or
`'static`. ([#31][gh-issue-0031])
- Fix a bug in `get_or_insert_with` and `get_or_try_insert_with` methods of
`future::Cache` by adding missing bounds `Send` and `'static` to the `init`
future. Without this fix, these methods will accept non-`Send` or
non-`'static` future and may cause undefined behavior.
([#31][gh-issue-0031])
- Fix `usize` overflow on big cache capacity. ([#28][gh-pull-0028])

### Added

- Add examples for `get_or_insert_with` and `get_or_try_insert_with`
methods to the docs. ([#30][gh-pull-0030])

### Changed

- Downgrade crossbeam-epoch used in moka-cht from v0.9.x to v0.8.x as a possible
workaround for segmentation faults on many-core CPU machines.
([#33][gh-pull-0033])


## Version 0.5.1

Expand Down Expand Up @@ -96,7 +104,8 @@

[caffeine-git]: https://github.com/ben-manes/caffeine

[gh-issue-0030]: https://github.com/moka-rs/moka/issues/30/
[gh-pull-0033]: https://github.com/moka-rs/moka/pull/33/
[gh-issue-0031]: https://github.com/moka-rs/moka/issues/31/
[gh-pull-0030]: https://github.com/moka-rs/moka/pull/30/
[gh-pull-0028]: https://github.com/moka-rs/moka/pull/28/
[gh-pull-0022]: https://github.com/moka-rs/moka/pull/22/
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ future = ["async-io", "async-lock"]

[dependencies]
crossbeam-channel = "0.5"
moka-cht = "0.5"
moka-cht = "0.4.2"
num_cpus = "1.13"
once_cell = "1.7"
parking_lot = "0.11"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ To run all tests including `future` feature and doc tests on the README, use the
following command:

```console
$ RUSTFLAGS='--cfg skeptic -cfg trybuild' cargo test --all-features
$ RUSTFLAGS='--cfg skeptic --cfg trybuild' cargo test --all-features
```


Expand Down