mirror of
https://github.com/janet-lang/janet
synced 2025-11-23 02:34:49 +00:00
Increase reference accuracy of on-stack close envs.
Using a bitset to indicate which stack values are upvalues, we can more accurately track when a reference to a stack value persists after the stack frame exits.
This commit is contained in:
@@ -212,6 +212,7 @@ JanetFuncDef *janet_funcdef_alloc(void) {
|
||||
def->environments = NULL;
|
||||
def->constants = NULL;
|
||||
def->bytecode = NULL;
|
||||
def->closure_bitset = NULL;
|
||||
def->flags = 0;
|
||||
def->slotcount = 0;
|
||||
def->arity = 0;
|
||||
|
||||
Reference in New Issue
Block a user