Implementation
Library dependency tower for xo-arena
Abstraction tower for xo-arena components (simplified)
Abstraction tower for xo-arena components (detailed)
Class |
Description |
|---|---|
|
Configuration for a |
|
VM-aware arena allocator |
|
Iterator over |
Class |
Description |
|---|---|
|
Return type for an alloc request, with error details. |
|
An opaque allocation. Value of an alloc-iterator. |
|
Per-allocator configuration of alloc headers |
|
Per-allocation header (8 bytes) |
|
Result of alloc-iterator comparison |
Example Object Diagram
representation for an arena allocator
memory layout
See Lifecycle for these same extents in motion.
Remarks:
See xo-alloc2 for abstract allocator trait AAllocator along with its application to DArena.
We split these because in xo-facet we rely on DArena to implement double-dispatch (two-dimensional vtables, as seen for example in CLOS, Julia, Mathematica).

![object darena1<<DArena>>
darena1 : config
darena1 : lo
darena1 : hi
darena1 : free
darena1 : limit
darena1 : last_error
rectangle "allocated" #90EE90 {
note as n1
lo -> free
objects here
end note
}
rectangle "available" #FFFFE0 {
note as n2
free -> limit
alloc from here
end note
}
rectangle "uncommitted" #D3D3D3 {
note as n3
limit -> hi
not mapped yet
end note
}
darena1 -[hidden]down- n1
n1 -[hidden]down- n2
n2 -[hidden]down- n3](_images/plantuml-177f1fba57dc8648e2603b09a2dcc4787168bcfd.png)