Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
chore: bump ouroboros from 0.5.1 to 0.9.3 (#18189) (#18573)
Browse files Browse the repository at this point in the history
* chore: bump ouroboros from 0.5.1 to 0.9.3

Bumps [ouroboros](https://github.com/joshua-maros/ouroboros) from 0.5.1 to 0.9.3.
- [Release notes](https://github.com/joshua-maros/ouroboros/releases)
- [Commits](https://github.com/joshua-maros/ouroboros/commits)

---
updated-dependencies:
- dependency-name: ouroboros
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* [auto-commit] Update all Cargo lock files

* Api changes

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <[email protected]>
Co-authored-by: Tyera Eulberg <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <[email protected]>
Co-authored-by: Tyera Eulberg <[email protected]>
  • Loading branch information
4 people authored Jul 10, 2021
1 parent 4c76482 commit a6a302f
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 11 deletions.
40 changes: 36 additions & 4 deletions Cargo.lock

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

40 changes: 36 additions & 4 deletions programs/bpf/Cargo.lock

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

2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ memmap2 = "0.1.0"
num-derive = { version = "0.3" }
num-traits = { version = "0.2" }
num_cpus = "1.13.0"
ouroboros = "0.5.1"
ouroboros = "0.10.0"
rand = "0.7.0"
rayon = "1.5.0"
regex = "1.3.9"
Expand Down
6 changes: 4 additions & 2 deletions runtime/src/accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ pub enum AccountIndexGetResult<'a, T: 'static> {
pub struct ReadAccountMapEntry<T: 'static> {
owned_entry: AccountMapEntry<T>,
#[borrows(owned_entry)]
#[covariant]
slot_list_guard: RwLockReadGuard<'this, SlotList<T>>,
}

Expand All @@ -147,7 +148,7 @@ impl<T: Clone> ReadAccountMapEntry<T> {
}

pub fn ref_count(&self) -> &AtomicU64 {
&self.borrow_owned_entry_contents().ref_count
&self.borrow_owned_entry().ref_count
}

pub fn unref(&self) {
Expand All @@ -163,6 +164,7 @@ impl<T: Clone> ReadAccountMapEntry<T> {
pub struct WriteAccountMapEntry<T: 'static> {
owned_entry: AccountMapEntry<T>,
#[borrows(owned_entry)]
#[covariant]
slot_list_guard: RwLockWriteGuard<'this, SlotList<T>>,
}

Expand All @@ -187,7 +189,7 @@ impl<T: 'static + Clone + IsCached> WriteAccountMapEntry<T> {
}

pub fn ref_count(&self) -> &AtomicU64 {
&self.borrow_owned_entry_contents().ref_count
&self.borrow_owned_entry().ref_count
}

// create an entry that is equivalent to this process:
Expand Down

0 comments on commit a6a302f

Please sign in to comment.