Skip to content

vere: avoid gc-loop after hitting guard page at home - #1067

Merged
pkova merged 2 commits into
developfrom
jb/meme-home
Jul 22, 2026
Merged

vere: avoid gc-loop after hitting guard page at home#1067
pkova merged 2 commits into
developfrom
jb/meme-home

Conversation

@joemfb

@joemfb joemfb commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

recover: top: meme (ie, u3m_signal(c3__meme) on the home road) sets the u3o_check_corrupt flag, which leads to a full gc in mars after the next global state mutation. This feature, while questionable, does correctly clear up memory leaks (at least in many scenarios) that were caused by abandoning the computation that caused the guard page to be hit. But it doesn't reset the flag, so gc passes are repeated after every subsequent mutation. The PR just unsets the flag after gc.

Our overall approach to OOM-on-the-home-road should be reevaluated, as this feature is only active through the u3m_signal() codepath -- u3m_bail() on the home road is simply a fatal error.

@joemfb
joemfb requested a review from a team as a code owner July 20, 2026 20:20
@pkova
pkova merged commit b95a75c into develop Jul 22, 2026
2 checks passed
@pkova
pkova deleted the jb/meme-home branch July 22, 2026 16:35
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.

2 participants