Skip to content

Serialize memvfs registration without locking callback destruction - #210

Open
LucaCappelletti94 wants to merge 3 commits into
Spxg:masterfrom
LucaCappelletti94:upstream/memvfs-registration
Open

LucaCappelletti94 wants to merge 3 commits into
Spxg:masterfrom
LucaCappelletti94:upstream/memvfs-registration

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

Part of #202. Stacked on #204, so only abb50c3 is added here.

Concurrent installers must agree on one memvfs registration and backing store after #204 makes file state shareable. With threadsafe, one critical section covers lookup and registry publication, while the public entry points remain unsafe.

OS callbacks may reenter install() from their destructors. Allocation failure must release registration synchronization before destroying them, without allocating candidate state for an installation that can reuse the existing VFS.

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