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_alloc
and non-default_jit_alloc
- Defines a global
JitAlloc
implementation whichGlobalJitAlloc
will defer to.
Structs§
- Global
JitAlloc global_jit_alloc
- The default, global JIT allocator.
- JitAlloc
Error - Anonymous error that may be returned by
JitAlloc
implementations whenJitAlloc::alloc
orJitAlloc::release
fail. - Thread
JitAlloc std
anddefault_jit_alloc
- 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.