Skip to content

Small mistake in Michael-Harris lock-free list #1

@oerdnj

Description

@oerdnj

Hi, thanks for all the great code and the blog. While implementing the Michal-Harris list in C, I found a small mistake you have here:

The next = curr->next.load(); needs to be next = getUnmarked(curr)->next.load(); as it could be marked (leading to unaligned/invalid access to memory).

(Found the typo causing the double-frees.)

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