Pinned alloc/alloc_bytes.rs:41–165, isolated-allocator branch. The host pointer is retained with its original (possibly empty) slice layout; allocation and destruction use the one-byte-adjusted layout. Host copy/read are genuine memory effects, never manufactured byte observations. Global allocator mode remains outside this isolated-native construction.
- pointer : Nat
- layout : NativeIsolatedAlloc.Layout
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
def
Miri.Interpreter.NativeAllocBytes.allocate
{S : Type}
(access : NativeIsolatedAlloc.Access S)
(host : Host S)
(layout : NativeIsolatedAlloc.Layout)
(zeroed : Bool)
:
alloc_with: the actual isolated allocator's address, including distinct
nonempty backing for zero-length slices. Layout validation runs in allocate.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.NativeAllocBytes.zeroed
{S : Type}
(access : NativeIsolatedAlloc.Access S)
(host : Host S)
(size align : Nat)
:
Equations
- Miri.Interpreter.NativeAllocBytes.zeroed access host size align = Miri.Interpreter.NativeAllocBytes.allocate access host { size := size, align := align } true
Instances For
def
Miri.Interpreter.NativeAllocBytes.clone
{S : Type}
(access : NativeIsolatedAlloc.Access S)
(host : Host S)
(buffer : Buffer)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.NativeAllocBytes.release
{S : Type}
(access : NativeIsolatedAlloc.Access S)
(host : Host S)
(buffer : Buffer)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Actual standard allocator effects. Null is allocation exhaustion, unlike isolated mmap failure (which is a source assertion failure).
- hostBits : Nat
- allocate : NativeIsolatedAlloc.Layout → Bool → EStateM StepError S Nat
- deallocate : Nat → NativeIsolatedAlloc.Layout → EStateM StepError S Unit
Instances For
def
Miri.Interpreter.NativeAllocBytes.globalAllocate
{S : Type}
(host : GlobalHost S)
(layout : NativeIsolatedAlloc.Layout)
(zeroed : Bool)
:
Source alloc_with returns None for conversion/layout errors or null.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.NativeAllocBytes.globalFromBytes
{S : Type}
(host : GlobalHost S)
(bytes : Array UInt8)
(align : Nat)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.NativeAllocBytes.globalSnapshot
{S : Type}
(host : GlobalHost S)
(buffer : Buffer)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.NativeAllocBytes.globalClone
{S : Type}
(host : GlobalHost S)
(buffer : Buffer)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.NativeAllocBytes.globalRelease
{S : Type}
(host : GlobalHost S)
(buffer : Buffer)
:
Equations
- Miri.Interpreter.NativeAllocBytes.globalRelease host buffer = host.deallocate buffer.pointer (Miri.Interpreter.NativeAllocBytes.actualLayout✝ buffer.layout)