mirror of
https://github.com/janet-lang/janet
synced 2024-11-24 09:17:17 +00:00
Still searching for the bug, which seems to have to do
an Array created in the copmile phase being freed early.
This commit is contained in:
parent
439650f26a
commit
c64282f8bf
4
vm.c
4
vm.c
@ -79,7 +79,7 @@ static StackFrame * VMMarkStackFrame(VM * vm, StackFrame * frame) {
|
||||
}
|
||||
|
||||
/* Mark allocated memory associated with a value. This is
|
||||
* the main function for doing garbage collection. */
|
||||
* the main function for doing the garbage collection mark phase. */
|
||||
static void VMMark(VM * vm, Value * x) {
|
||||
switch (x->type) {
|
||||
case TYPE_NIL:
|
||||
@ -751,7 +751,7 @@ void VMInit(VM * vm) {
|
||||
vm->black = 0;
|
||||
vm->lock = 0;
|
||||
/* Add thread */
|
||||
vm->thread = ArrayNew(vm, 20);
|
||||
vm->thread = NULL;
|
||||
}
|
||||
|
||||
/* Load a function into the VM. The function will be called with
|
||||
|
Loading…
Reference in New Issue
Block a user