Skip to content

rust: update Ref to use the kernel's refcount_t. - #377

Merged
wedsonaf merged 1 commit into
Rust-for-Linux:rustfrom
wedsonaf:refcount
Jun 25, 2021
Merged

wedsonaf merged 1 commit into
Rust-for-Linux:rustfrom
wedsonaf:refcount

Conversation

@wedsonaf

Copy link
Copy Markdown

Saturate the refcount instead of panicking. It also leverages existing C
code instead of reimplementing functionality.

This is the first step to deprecate Arc (that aborts on overflow) and BTreeMap (that panics on allocation failure).

Signed-off-by: Wedson Almeida Filho wedsonaf@google.com

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

6 participants