eggyal edited PR #2865 from expose_get_got_address
to main
.
eggyal edited 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_address
~ a newJITModule::read_got_entry
function so 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 edited 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_address
~ a newJITModule::read_got_entry
function so 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.
bjorn3 submitted PR Review.
cfallin submitted PR Review.
cfallin merged PR #2865.
Last updated: Nov 22 2024 at 16:03 UTC