elliottt opened issue #7588:
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 tousize
orisize
before they're used, so perhaps we should instead turn the base pointer into its target numeric type eagerly, to avoid needing theunsafe
blocks for calling theoffset
method on the pointers.
bjorn3 commented on issue #7588:
Using wrapping_offset it also an option. On CHERI you would need to use the current code to preserve the pointer capability I think, but we don't support CHERI yet anyway.
elliottt added the good first issue label to Issue #7588.
sudoHackIn commented on issue #7588:
Hi, @elliottt @bjorn3,is this issue is still actual? Unfortunately from glaziermag's pr and this comment (https://github.com/bytecodealliance/wasmtime/pull/8041#discussion_r1509922915) i cannot understand, whether pr is not correct, or bjorn3 decided that any modification(about this issue) doesn't make sense at all
Last updated: Dec 23 2024 at 12:05 UTC