elliottt opened issue #7588:
When performing relocations in cranelift-jit, there are many introductions of a variable
whatthat's defined as an unsafe pointer offset. These variables are almost always cast tousizeorisizebefore they're used, so perhaps we should instead turn the base pointer into its target numeric type eagerly, to avoid needing theunsafeblocks for calling theoffsetmethod 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 13 2025 at 19:03 UTC