-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release/8.0][wasm] Define getWasmIndirectFunctionTable
before initializing the
#92683
Conversation
.. runtime also, so it is available at that time.
Tagging subscribers to 'arch-wasm': @lewing Issue Details.. runtime also, so it is available at that time. Based on feedback from Katelyn Gadd.
|
getWasmIndirectFunctionTable
before initializing the
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain the scenarios under which this is necessary ?
startup can engage the interpreter, which could under rare circumstances (i.e. if you set low thresholds, disable tiering) engage the jiterpreter which will need these tables |
Address your suggestion in #92664 (comment) . I didn't change |
This reverts commit 4975dc3. This caused library aot tests to fail with: ``` info: MONO_WASM: mono_wasm_load_runtime () failed TypeError: t.getWasmIndirectFunctionTable is not a function info: MONO_WASM: TypeError: t.getWasmIndirectFunctionTable is not a function info: at Ma (/root/helix/work/workitem/e/wasm_build/AppBundle/_framework/dotnet.runtime.js:3:80285) info: at Ul (/root/helix/work/workitem/e/wasm_build/AppBundle/_framework/dotnet.runtime.js:3:174663) info: at do_jit_call (do_jit_call (wasm://wasm/0dec238a:wasm-function[90022]:0x16bba99)) info: at mono_interp_exec_method (mono_interp_exec_method (wasm://wasm/0dec238a:wasm-function[90012]:0x16af791)) info: at interp_runtime_invoke (interp_runtime_invoke (wasm://wasm/0dec238a:wasm-function[90052]:0x16bc9da)) info: at mono_jit_runtime_invoke (mono_jit_runtime_invoke (wasm://wasm/0dec238a:wasm-function[95289]:0x17c5028)) info: at do_runtime_invoke (do_runtime_invoke (wasm://wasm/0dec238a:wasm-function[94085]:0x178e3d3)) info: at mono_runtime_invoke_checked (mono_runtime_invoke_checked (wasm://wasm/0dec238a:wasm-function[94084]:0x178e38f)) info: at mono_runtime_install_appctx_properties (mono_runtime_install_appctx_properties (wasm://wasm/0dec238a:wasm-function[91526]:0x17054e4)) info: at mono_runtime_init_checked (mono_runtime_init_checked (wasm://wasm/0dec238a:wasm-function[91521]:0x1704d4e)) info: at mini_init (mini_init (wasm://wasm/0dec238a:wasm-function[95272]:0x17c43ea)) info: at mono_jit_init_version (mono_jit_init_version (wasm://wasm/0dec238a:wasm-function[95408]:0x17ca553)) info: at mono_wasm_load_runtime (mono_wasm_load_runtime (wasm://wasm/0dec238a:wasm-function[103299]:0x1900987)) info: at Module._mono_wasm_load_runtime (/root/helix/work/workitem/e/wasm_build/AppBundle/_framework/dotnet.native.js:6817:114) info: at ccall (/root/helix/work/workitem/e/wasm_build/AppBundle/_framework/dotnet.native.js:5851:22) info: at Object.mono_wasm_load_runtime (/root/helix/work/workitem/e/wasm_build/AppBundle/_framework/dotnet.native.js:5877:16) info: at Dl (/root/helix/work/workitem/e/wasm_build/AppBundle/_framework/dotnet.runtime.js:3:215804) info: at /root/helix/work/workitem/e/wasm_build/AppBundle/_framework/dotnet.runtime.js:3:205340 info: at /root/helix/work/workitem/e/wasm_build/AppBundle/_framework/dotnet.runtime.js:3:206020 ```
@kg interestingly removing |
Failing tests will be fixed by - #92747 |
@radical if this is ready, please send an email to Tactics requesting approval (unless you're waiting for @pavelsavara to approve the change first). |
@radical @kg @pavelsavara the CI is green after the latest feedback was addressed. When you're ready, please send the email to Tactics requesting approval. And please get a code review sign-off from an area owner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good enough fix for Net8 (because it's low risk), but for Net9 we need better solution (because it's ugly).
This was not approved for 8. |
.. runtime also, so it is available at that time.
Based on feedback from Katelyn Gadd.
Customer impact
Ensure that the indirect function table is available when the runtime is being initialized. This is a precautionary measure, and was not breaking any existing tests.
Testing
Unit tests.
Risk
Low.