Minimize contention on the deps for decls

This commit is contained in:
gingerBill
2023-01-12 15:38:23 +00:00
parent d6c54148d9
commit e97bf2ef35
4 changed files with 18 additions and 1 deletions

View File

@@ -9455,6 +9455,9 @@ gb_internal ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast
pl->decl = decl;
check_procedure_later(ctx.checker, ctx.file, empty_token, decl, type, pl->body, pl->tags);
mutex_lock(&ctx.checker->nested_proc_lits_mutex);
array_add(&ctx.checker->nested_proc_lits, decl);
mutex_unlock(&ctx.checker->nested_proc_lits_mutex);
}
check_close_scope(&ctx);