Skip to content

make u3m_stop reachable#967

Merged
pkova merged 3 commits into
developfrom
dozreg/make-stop-reachable
Feb 25, 2026
Merged

make u3m_stop reachable#967
pkova merged 3 commits into
developfrom
dozreg/make-stop-reachable

Conversation

@dozreg-toplud

Copy link
Copy Markdown
Contributor

Previously u3m_stop was not called on a shutdown because the processes would exit before uv_run would return. This would prevent some cleanup procedures to run.

@mopfel-winrux is spin stack only initialized in urth?

@dozreg-toplud dozreg-toplud requested a review from pkova February 19, 2026 15:24
@dozreg-toplud dozreg-toplud requested a review from a team as a code owner February 19, 2026 15:24
@mopfel-winrux

Copy link
Copy Markdown
Collaborator

No it should be initialized in mars also. I think mars actually initializes it first.

@dozreg-toplud

Copy link
Copy Markdown
Contributor Author

@mopfel-winrux thanks, I misread what was going on. The global variable is indeed initialized in mars only.

@dozreg-toplud dozreg-toplud force-pushed the dozreg/make-stop-reachable branch from 00e558f to 5ff199b Compare February 22, 2026 14:58
@dozreg-toplud dozreg-toplud force-pushed the dozreg/make-stop-reachable branch from 5ff199b to ff55cd9 Compare February 22, 2026 14:59
@dozreg-toplud

Copy link
Copy Markdown
Contributor Author

I initially wanted to have to separate u3m_stop_* routines for mars and urth, since I wanted to implement shared memory mapping between process as a file-backed mapping on windows, and only mars would have to delete the file on cleanup. Since then I refactored spin hint port on windows (see #969) which no longer creates that extra file

pkova added a commit that referenced this pull request Feb 23, 2026
Spin stack for windows

As it turns out it does not depend on #967 if we just accept that we
leak file handles - we did it anyway since we did not close `shm_fd`
when we could, and it's probably fine.

We also don't have to use file-backed mapping if we just use the
Windows-native functions instead of trying to reimplement `shm_open` in
Windows.
@pkova pkova merged commit 72c24b2 into develop Feb 25, 2026
2 checks passed
@pkova pkova deleted the dozreg/make-stop-reachable branch February 25, 2026 16:44
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.

3 participants