mirror of
https://github.com/janet-lang/janet
synced 2025-10-26 05:07:41 +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:
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
|
||||
|
||||
Reference in New Issue
Block a user