Skip to content

cmd/internal/obj/s390x: SYNC instruction encoding incorrect #42479

Description

@mundaym

The SYNC pseudoinstruction is supposed to correspond to a 'fast serialization' instruction of the form bcr 14,0. However, in CL 197178 I accidentally changed it to be bcr 7,0 which is a no-op.

This could cause subtle issues in lock-free code since we use SYNC as a store-load memory barrier.

Related to #32428.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.arch-s390xIssues solely affecting the s390x architecture.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions