We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b79eb commit 6ec844bCopy full SHA for 6ec844b
1 file changed
src/gf.c
@@ -2867,8 +2867,12 @@ jl_code_instance_t *jl_compile_method_internal(jl_method_instance_t *mi, size_t
2867
// Is a recompile if there is cached code, and it was compiled (not only inferred) before
2868
int is_recompile = 0;
2869
jl_code_instance_t *codeinst_old = jl_atomic_load_relaxed(&mi->cache);
2870
- if ((codeinst_old != NULL) && (jl_atomic_load_relaxed(&codeinst_old->invoke) != NULL)) {
2871
- is_recompile = 1;
+ while (codeinst_old != NULL) {
+ if (jl_atomic_load_relaxed(&codeinst_old->invoke) != NULL) {
2872
+ is_recompile = 1;
2873
+ break;
2874
+ }
2875
+ codeinst_old = jl_atomic_load_relaxed(&codeinst_old->next);
2876
}
2877
2878
// This codeinst hasn't been previously inferred do that now
0 commit comments