Skip to content

_Py_atomic_store_char_relaxed uses wrong memory ordering #131121

@colesbury

Description

@colesbury

Bug report

static inline void
_Py_atomic_store_char_relaxed(char *obj, char value)
{ __atomic_store_n(obj, value, __ATOMIC_RELEASE); }

__ATOMIC_RELEASE should be __ATOMIC_RELAXED.

It's not really a correctness issue because __ATOMIC_RELEASE is strong than __ATOMIC_RELAXED, but we should fix the typo.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions