Expand description
Abstractions around allocators that provide dual-mapped memory with XOR protection rules (one RW view and one RX view) suitable for emitting code at runtime.
Meant to be an abstraction over the jit-allocator crate’s API so that it can be swapped with
user-provided allocators.
See the JitAlloc trait for more information.
Macros§
- global_
jit_ alloc global_jit_allocand non-default_jit_alloc - Defines a global
JitAllocimplementation whichGlobalJitAllocwill defer to.
Structs§
- Global
JitAlloc global_jit_alloc - The default, global JIT allocator.
- JitAlloc
Error - Anonymous error that may be returned by
JitAllocimplementations whenJitAlloc::allocorJitAlloc::releasefail. - Thread
JitAlloc default_jit_allocandstd - Marker type providing access to a thread-local JIT allocator.
Enums§
- Protect
JitAccess - Values to use with
JitAlloc::protect_jit_memory.
Traits§
- JitAlloc
- Generic allocator providing virtual memory suitable for emitting code at runtime.