1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 01:17:16 +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:
Calvin Rose 2017-02-12 22:25:17 -05:00
parent 439650f26a
commit c64282f8bf

4
vm.c
View File

@ -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