Registry / utility / wasmtime-jit-icache-coherence

wasmtime-jit-icache-coherence

JSON →
library34.0.2rscratesunverified

Utilities for JIT icache maintenance in the Wasmtime runtime.

# Cargo.toml [dependencies] wasmtime-jit-icache-coherence = "34.0.2"
INSTALL
IMPORT
SIG · WASMTIME-JIT-ICACH
W
wasmtime-jit-icache-coherence
utilityrustv34.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

clear_cache
use wasmtime_jit_icache_coherence::clear_cache;

Clears the instruction cache for JIT-compiled code.

use wasmtime_jit_icache_coherence::clear_cache; fn main() { let code: &[u8] = &[0x00, 0x00, 0x00, 0x00]; unsafe { clear_cache(code.as_ptr(), code.len()); } }
Debug
Known issues
gotchaRequires unsafe code; incorrect usage can cause undefined behavior.
fix
Ensure the memory region is executable and properly aligned.
affects: >=0.0.0
Upgrade
Version history
34.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
wasmtime-jit-icache-coherence — cargo add wasmtime-jit-icache-coherence · libregistry