mark-sweep-sizes


Vocabulary
vm

Definition
USING: classes.struct ;

IN: vm

STRUCT: mark-sweep-sizes
{ size cell initial: 0 } { occupied cell initial: 0 }
{ total-free cell initial: 0 }
{ contiguous-free cell initial: 0 }
{ free-block-count cell initial: 0 } ;


Methods
USING: classes.struct classes.struct.private kernel vm ;

M: mark-sweep-sizes clone
clone-underlying \ mark-sweep-sizes memory>struct ; inline


USING: accessors classes.struct combinators combinators.smart vm
;

M: mark-sweep-sizes struct-slot-values
[
{
[ size>> ]
[ occupied>> ]
[ total-free>> ]
[ contiguous-free>> ]
[ free-block-count>> ]
} cleave
] output>array ; inline