Skip to content

Commit 5498570

Browse files
committed
fix incremental compile using the wrong method to re-add methods
1 parent ee584e8 commit 5498570

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/dump.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ void jl_deserialize_lambdas_from_mod(ios_t *s)
15881588
jl_function_t *meth = (jl_function_t*)jl_deserialize_value(s, NULL);
15891589
jl_svec_t *tvars = (jl_svec_t*)jl_deserialize_value(s, NULL);
15901590
int8_t isstaged = read_int8(s);
1591-
jl_add_method(gf, types, meth, tvars, isstaged);
1591+
jl_method_table_insert(jl_gf_mtable(gf), types, meth, tvars, isstaged);
15921592
}
15931593
}
15941594

@@ -2075,9 +2075,6 @@ DLLEXPORT int jl_save_incremental(const char *fname, jl_array_t *worklist)
20752075
return 0;
20762076
}
20772077

2078-
jl_function_t *jl_method_cache_insert(jl_methtable_t *mt, jl_tupletype_t *type,
2079-
jl_function_t *method);
2080-
20812078
static jl_datatype_t *jl_recache_type(jl_datatype_t *dt, size_t start)
20822079
{
20832080
assert(dt->uid == -1);

src/julia_internal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ jl_value_t *jl_type_match_morespecific(jl_value_t *a, jl_value_t *b);
109109
int jl_types_equal_generic(jl_value_t *a, jl_value_t *b, int useenv);
110110
jl_datatype_t *jl_inst_concrete_tupletype_v(jl_value_t **p, size_t np);
111111
jl_datatype_t *jl_inst_concrete_tupletype(jl_svec_t *p);
112+
jl_function_t *jl_method_cache_insert(jl_methtable_t *mt, jl_tupletype_t *type,
113+
jl_function_t *method);
114+
jl_methlist_t *jl_method_table_insert(jl_methtable_t *mt, jl_tupletype_t *type,
115+
jl_function_t *method, jl_svec_t *tvars,
116+
int8_t isstaged);
112117

113118
void jl_set_datatype_super(jl_datatype_t *tt, jl_value_t *super);
114119
void jl_add_constructors(jl_datatype_t *t);

0 commit comments

Comments
 (0)