Skip to content

fix(electron-ozone): ipcz leak on rohtmlwidget cycle OS-21158#139

Open
gostoshbs wants to merge 1 commit into
28-x-y-bsfrom
gostosh/OS-21158_ipcz_release
Open

fix(electron-ozone): ipcz leak on rohtmlwidget cycle OS-21158#139
gostoshbs wants to merge 1 commit into
28-x-y-bsfrom
gostosh/OS-21158_ipcz_release

Conversation

@gostoshbs
Copy link
Copy Markdown

Continuously creating and destroying Electron BrowserWindows in a loop causes the Electron main process's memory consumption to grow monotonically. Part of this is caused by ipcz leaving traps installed that persist and accumulate across BrowserWindow create/destroy cycles. These two patches address this by adding a removal API to ipcz and calling it from MojoTrap.

Future upstream merges may address this leak differently. This change should be re-evaluated when Electron/Chromium is upgraded.

Continuously creating and destroying Electron BrowserWindows in a loop
causes the Electron main process's memory consumption to grow
monotonically. Part of this is caused by ipcz leaving traps installed
that persist and accumulate across BrowserWindow create/destroy cycles.
These two patches address this by adding a removal API to ipcz and
calling it from MojoTrap.

Future upstream merges may address this leak differently. This change
should be re-evaluated when Electron/Chromium is upgraded.
Copy link
Copy Markdown

@t-bashir-bs t-bashir-bs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

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