Repository navigation
fix table resolution for thread.new-indirect intrinsic calls - #2585
Merged
alexcrichton merged 1 commit intoJul 29, 2026
Merged
alexcrichton merged 1 commit into
alexcrichton merged 1 commit into
Conversation
Previously, the encoding of `thread.new-indirect` calls looked for an `__indirect_function_table` export in the same module as the one importing that intrinsic. However, when linking shared libraries together, the intrinsic-importing library module will be different from the table-exporting main module. In practice, this means we should always be looking for the table in the main module, regardless of which module is importing the intrinsic. Fixes bytecodealliance#2583
alexcrichton
approved these changes
Jul 29, 2026
alexcrichton
enabled auto-merge
July 29, 2026 20:45
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 29, 2026
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
wasm-tools 1.255.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * Fix generating deeply nested WIT types in `wit-smith` by @alexcrichton in bytecodealliance/wasm-tools#2576 * wasm-tools mutate: validate the input module before mutating by @SAY-5 in bytecodealliance/wasm-tools#2577 * link tag imports to exports instead of synthesizing tags by @dicej in bytecodealliance/wasm-tools#2580 * Fix folded branch hints by @vouillon in bytecodealliance/wasm-tools#2578 * support cooperative multithreading ABI in `wit_component::linking` by @dicej in bytecodealliance/wasm-tools#2581 * avoid calling `__wasm_init_task` more than once in `init` module by @dicej in bytecodealliance/wasm-tools#2582 * Support `__wasm_{g,s}et_{tls_base,stack_pointer}` in `wit-component` by @alexcrichton in bytecodealliance/wasm-tools#2584 * fix table resolution for `thread.new-indirect` intrinsic calls by @dicej in bytecodealliance/wasm-tools#2585 * Release wasm-tools 1.255.0 by @github-actions[bot] in bytecodealliance/wasm-tools#2586 **Full Changelog**: https://github.com/bytecodealliance/wasm-tools/compare/v1.254.0...v1.255.0</pre> <p>View the full release notes at <a href="https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.255.0">https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.255.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!15533
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, the encoding of
thread.new-indirectcalls looked for an__indirect_function_tableexport in the same module as the one importing that intrinsic. However, when linking shared libraries together, the intrinsic-importing library module will be different from the table-exporting main module. In practice, this means we should always be looking for the table in the main module, regardless of which module is importing the intrinsic.Fixes #2583