KrkThreadState Struct Reference
Execution state of a VM thread. More...
#include <vm.h>
Data Fields | |
struct KrkThreadState * | next |
KrkCallFrame * | frames |
size_t | frameCount |
size_t | stackSize |
KrkValue * | stack |
KrkValue * | stackTop |
KrkUpvalue * | openUpvalues |
ssize_t | exitOnFrame |
KrkInstance * | module |
KrkValue | currentException |
int | flags |
unsigned int | maximumCallDepth |
KrkValue * | stackMax |
KrkValue | scratchSpace [KRK_THREAD_SCRATCH_SIZE] |
Detailed Description
Execution state of a VM thread.
Each thread in the VM has its own local thread state, which contains the thread's stack, stack pointer, call frame stack, a thread-specific VM flags bitarray, and an exception state.
- See also
- krk_currentThread
Field Documentation
◆ currentException
KrkValue KrkThreadState::currentException |
◆ exitOnFrame
ssize_t KrkThreadState::exitOnFrame |
◆ flags
int KrkThreadState::flags |
◆ frameCount
size_t KrkThreadState::frameCount |
◆ frames
KrkCallFrame* KrkThreadState::frames |
◆ maximumCallDepth
unsigned int KrkThreadState::maximumCallDepth |
◆ module
KrkInstance* KrkThreadState::module |
◆ next
struct KrkThreadState* KrkThreadState::next |
◆ openUpvalues
KrkUpvalue* KrkThreadState::openUpvalues |
◆ scratchSpace
KrkValue KrkThreadState::scratchSpace[KRK_THREAD_SCRATCH_SIZE] |
◆ stack
KrkValue* KrkThreadState::stack |
◆ stackMax
KrkValue* KrkThreadState::stackMax |
◆ stackSize
size_t KrkThreadState::stackSize |
◆ stackTop
KrkValue* KrkThreadState::stackTop |
The documentation for this struct was generated from the following file:
- src/kuroko/vm.h