Skip to content

Need to switch from ink_atomic.h to Standard lib <atomic> #7398

Open

Description

@ywkaras

This is not simply a cosmetic issue. ink_atomic.h effectively assumes there is no need for memory fence instructions on any architecture that TS runs on:

/* not used for Intel Processors which have sequential(esque) consistency */

For x86 architectures for example, this is not true for any version after the 386. It may also be true, for some architectures (or compiler options), that the alignment requirements when doing atomic access are stricter than those for non-atomic access.

Activity

  1. added this to the 10.0.0 milestone on Dec 15, 2020
  2. modified the milestones: 10.0.0, Sometime on Dec 14, 2021
  3. self-assigned this
    on Dec 14, 2021
  4. github-actions commented on Dec 14, 2022

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.

  5. ywkaras commented on Aug 5, 2024

    @ywkaras
    Author

    Wrote this PR as a fix, but it was not approved: #7382

  6. removed their assignment
    on Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions