Skip to content

Commit bc88b43

Browse files
committed
Promise that jl_typeinf_func is rooted somewhere
1 parent a63aa9f commit bc88b43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ static int reset_mt_caches(jl_methtable_t *mt, void *env)
543543
}
544544

545545

546-
jl_function_t *jl_typeinf_func = NULL;
546+
jl_function_t *jl_typeinf_func JL_GLOBALLY_ROOTED = NULL;
547547
JL_DLLEXPORT size_t jl_typeinf_world = 1;
548548

549549
JL_DLLEXPORT void jl_set_typeinf_func(jl_value_t *f)

src/julia_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ void print_func_loc(JL_STREAM *s, jl_method_t *m);
292292
extern jl_array_t *_jl_debug_method_invalidation JL_GLOBALLY_ROOTED;
293293

294294
extern JL_DLLEXPORT size_t jl_page_size;
295-
extern jl_function_t *jl_typeinf_func;
295+
extern jl_function_t *jl_typeinf_func JL_GLOBALLY_ROOTED;
296296
extern JL_DLLEXPORT size_t jl_typeinf_world;
297297
extern _Atomic(jl_typemap_entry_t*) call_cache[N_CALL_CACHE] JL_GLOBALLY_ROOTED;
298298
extern jl_array_t *jl_all_methods JL_GLOBALLY_ROOTED;

0 commit comments

Comments
 (0)