bytecodealliance/wasmtime
Eagerly cast pointers in aarch64 relocation code to `usize` to avoid `unsafe` blocks in cranelift-jit
Fechada
#7.588 aberto em 27 de nov. de 2023
good first issue
Métricas do repositório
- Stars
- (17.002 estrelas)
- Métricas de merge de PR
- (Mesclagem média 23h 31m) (212 fundiu PRs em 30d)
Description
When performing relocations in cranelift-jit, there are many introductions of a variable what that's defined as an unsafe pointer offset. These variables are almost always cast to usize or isize before they're used, so perhaps we should instead turn the base pointer into its target numeric type eagerly, to avoid needing the unsafe blocks for calling the offset method on the pointers.