Skip to content

src: prepare for v8 sandboxing#58376

Closed
jasnell wants to merge 1 commit intonodejs:mainfrom
jasnell:jasnell/some-v8-sandbox-preparations
Closed

src: prepare for v8 sandboxing#58376
jasnell wants to merge 1 commit intonodejs:mainfrom
jasnell:jasnell/some-v8-sandbox-preparations

Conversation

@jasnell
Copy link
Copy Markdown
Member

@jasnell jasnell commented May 18, 2025

When the v8 sandbox is enabled (possibly at some point in the future) all ArrayBuffer allocations must be done within the isolate. Externally allocated backing stores are not permitted. This starts to prepare for that by adding some compile time branches to copy some external buffers rather than wrapping them. We also disable the --secure-heap feature since that fundamentally doesn't make sense and can't be supported with v8 sandbox enabled.

This PR cannot yet include additional tests for the new branches largely because we cannot yet build node with v8 sandbox enabled.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants