Skip to content

Conversation

@nornagon
Copy link
Contributor

@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 recently label Jun 23, 2022
Base automatically changed from roller/chromium/main to main June 27, 2022 20:50
@nornagon nornagon force-pushed the sandboxed-pointers branch from bd39f12 to 70b739a Compare June 27, 2022 21:20
benchmarks showed the function call was slower
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently 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.

7 participants