Skip to content

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

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.)

Activity

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

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