| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PTAL, thanks!
For reference, this is the Node.js integration PR for this API to address the bug for vscode https://github.com/nodejs/node/pull/62132
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Exposing this via an API is fine with me.
+Jakob who might have an (other?) opinion on this.
+Michael for include/ ownership.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
No objections.
It can't be ruled out that this API might require rethinking (or removing) at some point in the future, if we ever come up with a scheme for handling Wasm memories that doesn't make their reservation size predictable in this way; but that doesn't seem very likely currently.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
API lgtm
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[api] Add V8::GetWasmMemoryReservationSizeInBytes()
When the system does not have enough virtual memory for the wasm
cage, installing the trap handler would cause any code allocating
wasm memory to throw. Therefore it's useful for the embedder to
know when the system doesn't have enough virtual address space
to allocate enough wasm cages and in that case, skip the
trap handler installation so that wasm code can at least work
(even not at the maximal performance).
Node.js previously has a command line option
--disable-wasm-trap-handler to fully disable trap-based bound checks,
this new API would allow it to adapt automatically while keeping the
optimization in the happy path, since it's not always possible for
end users to opt-into disabling trap-based bound checks (for example,
when a VS Code Server is loaded in a remote server for debugging).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |