Skip to content

Clean-up pyatomic headers #109693

Activity

  1. added a commit that references this issue on Sep 21, 2023
  2. added a commit that references this issue on Sep 21, 2023
  3. colesbury commented on Sep 21, 2023

    @colesbury
    ContributorAuthor

    @vstinner, For pycore_atomic.h, I'm not sure whether to keep _Py_atomic_address and _Py_atomic_int or not.

  4. vstinner commented on Sep 21, 2023

    @vstinner
    Member

    I was fine to remove pycore_atomic_funcs.h at once since it's only used by _PyUnicode_FromId() which is... no longer used by Python itself!

    To remove pycore_atomic.h, I would prefer to make baby steps: convert usage one by one. For example, you can start by converting signal handlers: get_handler() and set_handler() in Modules/signalmodule.c, and also the two "tripped" variables.

    If someone goes wrong, it would be easier to revert changes if they have limited scope. Also, smaller PRs are easier to review :-)

  5. added a commit that references this issue on Sep 28, 2023
  6. added 3 commits that reference this issue on Oct 6, 2023
  7. corona10 commented on Oct 10, 2023

    @corona10
    Member

    @colesbury @vstinner
    I am working on the following fields.

    _Py_atomic_address last_holder;
    /* Whether the GIL is already taken (-1 if uninitialized). This is
    atomic because it can be read without any lock taken in ceval.c. */
    _Py_atomic_int locked;

  8. added 4 commits that reference this issue on Oct 10, 2023
  9. 8 remaining items

  10. added a commit that references this issue on Oct 17, 2023
  11. corona10 commented on Oct 17, 2023

    @corona10
    Member

    @colesbury @vstinner I think that now we can close this issue.
    Please let me know if you want to reopen this issue :)

  12. colesbury commented on Oct 17, 2023

    @colesbury
    ContributorAuthor

    Thanks @corona10!

  13. vstinner commented on Oct 17, 2023

    @vstinner
    Member

    Well done. One less legacy API in Python C API :-)

  14. added 3 commits that reference this issue on Feb 11, 2024
  15. added 7 commits that reference this issue on Sep 2, 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

    Labels

    3.13only security fixestype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions