Skip to content

Commit

Permalink
fix dt->uid assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Jul 17, 2015
1 parent b3423f2 commit 6ceff1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,7 @@ static jl_value_t *jl_deserialize_datatype(ios_t *s, int pos, jl_value_t **loc)
assert(mode != MODE_MODULE_POSTWORK);
arraylist_push(&flagref_list, loc);
arraylist_push(&flagref_list, (void*)(uptrint_t)pos);
dt->uid = jl_assign_type_uid(); // make sure this has a new uid early so it goes in the type cache correctly
}

if (nf > 0) {
Expand Down Expand Up @@ -1723,9 +1724,7 @@ void jl_restore_system_image_from_stream(ios_t *f)
// cache builtin parametric types
for(int i=0; i < jl_array_len(datatype_list); i++) {
jl_value_t *v = jl_cellref(datatype_list, i);
uint32_t uid = ((jl_datatype_t*)v)->uid;
jl_cache_type_((jl_datatype_t*)v);
((jl_datatype_t*)v)->uid = uid;
}
datatype_list = NULL;

Expand Down

0 comments on commit 6ceff1c

Please sign in to comment.