toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.shake.bytecode.interpreter
/
com.shakelang.shake.bytecode.interpreter.heap
/
GarbageCollector
Garbage
Collector
class
GarbageCollector
(
val
malloc
:
Malloc
,
val
interpreter
:
ShakeInterpreter
)
(
source
)
Members
Constructors
Garbage
Collector
Link copied to clipboard
constructor
(
malloc
:
Malloc
,
interpreter
:
ShakeInterpreter
)
Properties
global
Memory
Link copied to clipboard
val
globalMemory
:
GlobalMemory
interpreter
Link copied to clipboard
val
interpreter
:
ShakeInterpreter
malloc
Link copied to clipboard
val
malloc
:
Malloc
Functions
collect
Link copied to clipboard
fun
collect
(
)
fun
collect
(
startPointer
:
Long
)
free
Unmarked
Blocks
Link copied to clipboard
fun
freeUnmarkedBlocks
(
startPointer
:
Long
)
mark
Link copied to clipboard
fun
mark
(
startPointer
:
Long
)
scan
Link copied to clipboard
fun
scan
(
stack
:
ByteStack
)
fun
scan
(
localMemory
:
ByteArray
)
scan
Block
Link copied to clipboard
fun
scanBlock
(
blockPointer
:
Long
)
:
Boolean
fun
scanBlock
(
header
:
MallocHeader
,
blockPointer
:
Long
)
:
Boolean
scan
Blocks
Link copied to clipboard
fun
scanBlocks
(
startPointer
:
Long
)
:
Boolean
scan
Local
References
Link copied to clipboard
fun
scanLocalReferences
(
)
scan
Region
Link copied to clipboard
fun
scanRegion
(
start
:
Long
,
end
:
Long
)
:
Boolean
unmark
Link copied to clipboard
fun
unmark
(
pointer
:
Long
)
fun
unmark
(
pointer
:
Long
,
header
:
MallocHeader
)
unmark
Blocks
Link copied to clipboard
fun
unmarkBlocks
(
startPointer
:
Long
)