Handbook
Glossary
vm
Vocabulary
vm
Class description
A struct that defines the memory layout of the running virtual machine. It is used by the optimizing compiler to calculate field offsets. Its slots are:
nursery
A
zone
in which all new objects are allocated.
Definition
USING:
alien.c-types
classes.struct
;
IN:
vm
STRUCT:
vm
{
ctx context*
}
{
spare-ctx context*
}
{
nursery
zone
initial:
S{
zone
{
here 0
}
{
start 0
}
{
end 0
}
{
size 0
}
}
}
{
cards-offset
cell_t
initial:
0
}
{
decks-offset
cell_t
initial:
0
}
{
signal-handler-addr
cell_t
initial:
0
}
{
faulting?
cell_t
initial:
0
}
{
special-objects cell_t[special-object-count]
}
{
thread void*
}
{
datastack-size
cell_t
initial:
0
}
{
retainstack-size
cell_t
initial:
0
}
{
callstack-size
cell_t
initial:
0
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
vm
;
M:
vm
clone
clone-underlying
\
vm
memory>struct
;
inline
USING:
accessors
classes.struct
combinators.smart
vm
;
M:
vm
struct-slot-values
{
[
ctx>>
]
[
spare-ctx>>
]
[
nursery>>
]
[
cards-offset>>
]
[
decks-offset>>
]
[
signal-handler-addr>>
]
[
faulting?>>
]
[
special-objects>>
]
[
thread>>
]
[
datastack-size>>
]
[
retainstack-size>>
]
[
callstack-size>>
]
}
cleave>array
;
inline