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

feat: enable v8 sandboxed pointers #34724

Merged
merged 3 commits into from Jul 5, 2022
Merged

feat: enable v8 sandboxed pointers #34724

merged 3 commits into from Jul 5, 2022

Conversation

nornagon
Copy link
Member

@nornagon nornagon commented Jun 23, 2022

BREAKING CHANGE

Description of Change

This reworks several allocators in Node to be compatible with V8 sandboxed
pointers.

Notes: Enabled the V8 memory cage for external buffers. See https://www.electronjs.org/blog/v8-memory-cage for more details.

@nornagon nornagon requested review from a team as code owners June 23, 2022 23:41
@nornagon nornagon added no-backport semver/major incompatible API changes labels Jun 23, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 23, 2022
Base automatically changed from roller/chromium/main to main June 27, 2022 20:50
benchmarks showed the function call was slower
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 30, 2022
@jkleinsc jkleinsc merged commit e5db178 into main Jul 5, 2022
@jkleinsc jkleinsc deleted the sandboxed-pointers branch July 5, 2022 15:28
@release-clerk
Copy link

release-clerk bot commented Jul 5, 2022

Release Notes Persisted

Enabled the V8 memory cage for external buffers. See https://www.electronjs.org/blog/v8-memory-cage for more details.

@Julusian
Copy link

Is there a way to query for this being enabled at runtime?

I don't want to cost nodejs users performance just because electron needs an extra memcpy

schetle pushed a commit to schetle/electron that referenced this pull request Nov 3, 2022
* feat: enable v8 sandboxed pointers

* update breaking-changes.md

* update zero-fill patch

benchmarks showed the function call was slower
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* feat: enable v8 sandboxed pointers

* update breaking-changes.md

* update zero-fill patch

benchmarks showed the function call was slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport semver/major incompatible API changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants