Skip to content

Commit 5fa2de9

Browse files
committed
analyzegc fix
1 parent 74d388f commit 5fa2de9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static value_t fl_current_module_counter(fl_context_t *fl_ctx, value_t *args, ui
228228
}
229229
// Create the string
230230
char buf[(funcname != NULL ? strlen(funcname) : 0) + 20];
231-
if (funcname != NULL && !is_anonfn_typename(funcname)) {
231+
if (funcname != NULL && funcname[0] != '#') {
232232
uint32_t nxt;
233233
uv_mutex_lock(&counter_table_lock);
234234
// try to find the module name in the counter table, if it's not create a symbol table for it

src/julia_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ jl_method_t *jl_make_opaque_closure_method(jl_module_t *module, jl_value_t *name
842842
int nargs, jl_value_t *functionloc, jl_code_info_t *ci, int isva, int isinferred);
843843
JL_DLLEXPORT int jl_is_valid_oc_argtype(jl_tupletype_t *argt, jl_method_t *source);
844844

845-
STATIC_INLINE int is_anonfn_typename(char *name)
845+
STATIC_INLINE int is_anonfn_typename(char *name) JL_NOTSAFEPOINT
846846
{
847847
if (name[0] != '#' || name[1] == '#')
848848
return 0;

0 commit comments

Comments
 (0)