File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -981,9 +981,15 @@ static void jl_collect_lambdas_from_mod(jl_array_t *s, jl_module_t *m) JL_GC_DIS
981
981
jl_collect_lambdas_from_mod (s , (jl_module_t * )b -> value );
982
982
}
983
983
}
984
- else if (jl_is_mtable (bv )) {
985
- // a module containing an external method table
986
- jl_collect_methtable_from_mod (s , (jl_methtable_t * )bv );
984
+ else if (jl_is_mtable (b -> value )) {
985
+ jl_methtable_t * mt = (jl_methtable_t * )b -> value ;
986
+ if (mt -> module == m && mt -> name == b -> name ) {
987
+ // this is probably an external method table, so let's assume so
988
+ // as there is no way to precisely distinguish them,
989
+ // and the rest of this serializer does not bother
990
+ // to handle any method tables specially
991
+ jl_collect_methtable_from_mod (s , (jl_methtable_t * )bv );
992
+ }
987
993
}
988
994
}
989
995
}
You can’t perform that action at this time.
0 commit comments