Skip to content

Handling of borrow overflows #34

@Ella-0

Description

@Ella-0

I'm interested to know why a high bit for marking a BorrowMut. If a low bit (and then .fetch_add(2, ...) instead overflow checking becomes not required. In the case of a failed borrow attempt it is impossible to clobber the mutable borrow bit. In the case of a successful borrow I'm doubtful the several PiB required to represent all the AtomicBorrowRefs wouldn't be reached before an overflow becomes a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions