eggyal opened PR #2865 from expose_get_got_address to main:
This hasn't been discussed in a wasmtime issue, but (together with #2786) it's needed it for bjorn3/rustc_codegen_cranelift#1166.
It exposes
JITModule::get_got_addressso that, when jitting lazily, cranelift users can inspect the GOT to determine whether a given function's entry is still their shim trampoline or not (and therefore whether the function has already been jitted). This prevents the function from being jitted differently from simultaneous requests arising from different threads.No test cases added, because exposing a function obviously doesn't change any behaviour.
Sorry, I don't know who would be an appropriate reviewer for this.
eggyal updated PR #2865 from expose_get_got_address to main.
Last updated: Dec 13 2025 at 19:03 UTC