Skip to content
Commit Detail

Commit 0e2031e

Author
James M Snell <jsnell@cloudflare.com> 2025-09-24 10:14:49 -0700
Parents
6a17c7a
Tree
a70f46f
Add MemoryProtectionKeyScope

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.

Files changed

3 files changed~3 modified