Skip to content

Improvements in use of python SharedMemory#26

Merged
tskisner merged 7 commits intomasterfrom
shmem_fix
Jan 6, 2025
Merged

Improvements in use of python SharedMemory#26
tskisner merged 7 commits intomasterfrom
shmem_fix

Conversation

@tskisner
Copy link
Owner

@tskisner tskisner commented Jan 5, 2025

  • Remove previous patch and instead ship a backport of the changes which are in python 3.13. This allows the "track=False" option when creating SharedMemory segments.

  • In order to better handle cleanup, keep a registry of all memory segments allocated on every process. Register a cleanup handler for python atexit and also register a cleanup handler for signals such as SIGTERM.

  • Expand unit tests

  • Convert build to pyproject.toml with minimal setup.py backend.

  • Improve test and deployment workflows.

- Remove previous patch and instead ship a backport of the changes
  which are in python 3.13.  This allows the "track=False" option
  when creating SharedMemory segments.

- In order to better handle cleanup, keep a registry of all memory
  segments allocated on every process.  Register a cleanup handler
  for python atexit and also register a cleanup handler for signals
  such as SIGTERM.

- Expand unit tests

- Convert build to pyproject.toml with minimal setup.py backend.

- Improve test and deployment workflows.
@tskisner tskisner merged commit 48b946c into master Jan 6, 2025
7 checks passed
@tskisner tskisner deleted the shmem_fix branch January 6, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant