File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2368,12 +2368,13 @@ jl_method_instance_t *jl_get_unspecialized(jl_method_t *def JL_PROPAGATES_ROOT)
23682368jl_code_instance_t * jl_method_compiled (jl_method_instance_t * mi , size_t world )
23692369{
23702370 jl_code_instance_t * codeinst = jl_atomic_load_relaxed (& mi -> cache );
2371- while (codeinst ) {
2371+ for (; codeinst ; codeinst = jl_atomic_load_relaxed (& codeinst -> next )) {
2372+ if (codeinst -> owner != jl_nothing )
2373+ continue ;
23722374 if (jl_atomic_load_relaxed (& codeinst -> min_world ) <= world && world <= jl_atomic_load_relaxed (& codeinst -> max_world )) {
23732375 if (jl_atomic_load_relaxed (& codeinst -> invoke ) != NULL )
23742376 return codeinst ;
23752377 }
2376- codeinst = jl_atomic_load_relaxed (& codeinst -> next );
23772378 }
23782379 return NULL ;
23792380}
You can’t perform that action at this time.
0 commit comments