-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve shared memory segment cleanup (#998)
- we now maintain an internal list containing the id of every allocated segment, which we can use to clean up the segments on operating systems (e.g. MacOS) which do not provide a way to obtain a list of all the existing shared-memory segments on the system. - also added more debug assertions to ensure correct handling of shared memory segments (i.e. not opening segments which haven't been created)
- Loading branch information
1 parent
494d296
commit e44ad8e
Showing
5 changed files
with
232 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 91 additions & 31 deletions
122
packages/engine/lib/memory/src/shared_memory/segment/cleanup.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.