Skip to content

Allow exempting some processes from overcommit#5

Open
hach-que wants to merge 2 commits into
EpicGamesExt:mainfrom
RedpointGames:wine-exempt
Open

Allow exempting some processes from overcommit#5
hach-que wants to merge 2 commits into
EpicGamesExt:mainfrom
RedpointGames:wine-exempt

Conversation

@hach-que
Copy link
Copy Markdown

This allows you to set e.g. WINE_PREVENT_OVERCOMMIT_EXEMPT=ubaagent.exe to exempt some processes from Wine overcommit prevention.

This is necessary for UbaAgent, which can not tolerate memory allocation failures under some circumstances. In particular, Session::ProcessExited in UbaAgent will occur when processes are exiting due to memory pressure, and this function allocates through the m_deadProcesses.emplace_back call. When Wine overcommit prevention is enabled, the underlying mi_malloc_aligned call from emplace_back can return nullptr, resulting in a segmentation fault.

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