Skip to content

Commit

Permalink
analyzegc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Mar 20, 2024
1 parent 74d388f commit 5fa2de9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static value_t fl_current_module_counter(fl_context_t *fl_ctx, value_t *args, ui
}
// Create the string
char buf[(funcname != NULL ? strlen(funcname) : 0) + 20];
if (funcname != NULL && !is_anonfn_typename(funcname)) {
if (funcname != NULL && funcname[0] != '#') {
uint32_t nxt;
uv_mutex_lock(&counter_table_lock);
// try to find the module name in the counter table, if it's not create a symbol table for it
Expand Down
2 changes: 1 addition & 1 deletion src/julia_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ jl_method_t *jl_make_opaque_closure_method(jl_module_t *module, jl_value_t *name
int nargs, jl_value_t *functionloc, jl_code_info_t *ci, int isva, int isinferred);
JL_DLLEXPORT int jl_is_valid_oc_argtype(jl_tupletype_t *argt, jl_method_t *source);

STATIC_INLINE int is_anonfn_typename(char *name)
STATIC_INLINE int is_anonfn_typename(char *name) JL_NOTSAFEPOINT
{
if (name[0] != '#' || name[1] == '#')
return 0;
Expand Down

0 comments on commit 5fa2de9

Please sign in to comment.