Skip to content

Add MemoryProtectionKeyScope#5167

Merged
jasnell merged 1 commit intomainfrom
jasnell/mpk-scope
Dec 1, 2025
Merged

Add MemoryProtectionKeyScope#5167
jasnell merged 1 commit intomainfrom
jasnell/mpk-scope

Conversation

@jasnell
Copy link
Copy Markdown
Collaborator

@jasnell jasnell commented Sep 24, 2025

Utility class for capturing the current MPK for the isolate (if enabled) and restoring it when necessary. This is necessary for correct operation when, for instance, we are writing to an ArrayBuffer BackingStore from a coroutine outside the isolate lock. Eventually we should see about making the coroutine itself MPK-aware but this is a good first step that keeps things relatively simple.

@jasnell jasnell requested review from a team as code owners September 24, 2025 17:23
@codspeed-hq

This comment was marked as outdated.

@jasnell
Copy link
Copy Markdown
Collaborator Author

jasnell commented Nov 27, 2025

the internal PR that goes with this needs to be rebased before this can land.

Utility class for capturing the current MPK for
the isolate (if enabled) and restoring it when
necessary. This is necessary for correct operation
when, for instance, we are writing to an ArrayBuffer
BackingStore from a coroutine outside the isolate
lock. Eventually we should see about making the
coroutine itself MPK-aware but this is a good
first step that keeps things relatively simple.
@jasnell jasnell merged commit 1711af3 into main Dec 1, 2025
32 of 34 checks passed
@jasnell jasnell deleted the jasnell/mpk-scope branch December 1, 2025 21:38
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