Skip to content

Commit

Permalink
remove old ASCIIString constructor code from dump.c
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Oct 14, 2014
1 parent 4e0dd59 commit 0f67c69
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,7 @@ static jl_value_t *jl_deserialize_value(ios_t *s)

extern jl_array_t *jl_module_init_order;

DLLEXPORT
void jl_save_system_image(char *fname)
DLLEXPORT void jl_save_system_image(char *fname)
{
jl_gc_collect();
jl_gc_collect();
Expand All @@ -950,17 +949,6 @@ void jl_save_system_image(char *fname)
// orphan old Base module if present
jl_base_module = (jl_module_t*)jl_get_global(jl_main_module, jl_symbol("Base"));

// delete cached slow ASCIIString constructor if present
jl_methtable_t *mt = jl_gf_mtable((jl_function_t*)jl_ascii_string_type);
jl_array_t *spec = mt->defs->func->linfo->specializations;
if (spec != NULL && jl_array_len(spec) > 0 &&
((jl_lambda_info_t*)jl_cellref(spec,0))->inferred == 0) {
mt->cache = (jl_methlist_t*)JL_NULL;
mt->cache_arg1 = (jl_array_t*)JL_NULL;
mt->defs->func->linfo->tfunc = (jl_value_t*)jl_null;
mt->defs->func->linfo->specializations = NULL;
}

jl_idtable_type = jl_get_global(jl_base_module, jl_symbol("ObjectIdDict"));

jl_serialize_value(&f, jl_main_module);
Expand Down

0 comments on commit 0f67c69

Please sign in to comment.