Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove EarlyMallocZoneRegistration call #40128

Merged
merged 1 commit into from Oct 9, 2023

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Oct 6, 2023

Description of Change

This PR reverts #33832 for 2 reasons:

  1. The EarlyMallocZoneRegistration call is currently a no-op since PartitionAlloc is disabled in Electron.
  2. The prerequisite of calling EarlyMallocZoneRegistration is that the whole application is built as a library and the executable binary loads the app by dlopen and dlsym (https://bugs.chromium.org/p/chromium/issues/detail?id=1452229 has some background information on this). Electron is currently still linking the executable binaries to the Electron Framework which does not match the prerequisite and will crash when PartitionAlloc is enabled.

This PR will unblock #33981.

Release Notes

Notes: none

@zcbenz zcbenz added semver/patch backwards-compatible bug fixes no-backport labels Oct 6, 2023
@zcbenz zcbenz requested a review from deepak1556 October 6, 2023 10:50
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Oct 6, 2023
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

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

👍

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Oct 7, 2023
@zcbenz zcbenz merged commit f5c1776 into main Oct 9, 2023
18 checks passed
@zcbenz zcbenz deleted the revert-early-partition-alloc branch October 9, 2023 00:43
@release-clerk
Copy link

release-clerk bot commented Oct 9, 2023

No Release Notes

MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants