-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wasm] Jiterpreter multithreading support (#88279)
* Enable jiterpreter traces in multithreaded builds * Pre-allocate fixed number of function table entries populated with placeholder functions at startup, for traces, interp_entry and jit_call (size configurable with runtime options) * Change layout of all jiterpreter opcodes to 4 ushorts: [opcode] [relative_fn_ptr] [trace_index_low] [trace_index_high] * Jiterpreter opcode access is done through a packed struct instead of raw byte manipulation * Update most jiterpreter state management to use atomics (via stdatomic.h) * Move some jiterpreter state, like counters, from TS to shared storage in C that is managed with atomics * Patch emscripten libraries to expose a reliable getter for the wasm memory object * Partial thread safety for jiterpreter jit_call and interp_entry wrappers * Removed trace transfer optimization because it's no longer useful
- Loading branch information
Showing
20 changed files
with
922 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.