Skip to main content

repatch_value_span

Function repatch_value_span 

Source
pub unsafe fn repatch_value_span(
    jit_allocator: &mut JitAllocator,
    span: &mut Span,
    data: CodeLocationData,
    value: u64,
) -> Result<(), AsmError>
Expand description

Writes value into the immediate at data in loaded code.

ยงSafety

span must hold the image data was located in, and no thread may execute the instruction while it is rewritten.