Skip to content

Not actually lock-free #44

Closed
Closed
@Diggsey

Description

@Diggsey

This crate is now used in rustc as of rust-lang/rust#108300

However, it seems to be making some misleading claims about the LockFreeFrozenVec:

The spinlocks are really rare as they only happen on reallocation due to a push going over the capacity.

However, when looking at the source code it appears to take the lock on every push:

self.lock(|ptr| {

And it also takes the lock on reads as well!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions