@@ -312,8 +312,6 @@ static uintptr_t nsym_tag;
312
312
// array of definitions for the predefined tagged object types
313
313
// (reverse of symbol_table)
314
314
static arraylist_t deser_sym ;
315
- // Predefined tags that do not have special handling in `externally_linked`
316
- static htable_t external_objects ;
317
315
318
316
static htable_t serialization_order ; // to break cycles, mark all objects that are serialized
319
317
static htable_t nullptrs ;
@@ -2661,13 +2659,6 @@ static void jl_save_system_image_to_stream(ios_t *f, jl_array_t *mod_array,
2661
2659
jl_queue_for_serialization (& s , s .ptls -> root_task -> tls );
2662
2660
}
2663
2661
else {
2664
- // To ensure we don't have to manually update the list, go through all tags and queue any that are not otherwise
2665
- // judged to be externally-linked
2666
- htable_new (& external_objects , NUM_TAGS );
2667
- for (size_t i = 0 ; tags [i ] != NULL ; i ++ ) {
2668
- jl_value_t * tag = * tags [i ];
2669
- ptrhash_put (& external_objects , tag , tag );
2670
- }
2671
2662
// Queue the worklist itself as the first item we serialize
2672
2663
jl_queue_for_serialization (& s , worklist );
2673
2664
jl_queue_for_serialization (& s , jl_module_init_order );
@@ -2871,8 +2862,6 @@ static void jl_save_system_image_to_stream(ios_t *f, jl_array_t *mod_array,
2871
2862
arraylist_free (& gvars );
2872
2863
arraylist_free (& external_fns );
2873
2864
htable_free (& field_replace );
2874
- if (worklist )
2875
- htable_free (& external_objects );
2876
2865
htable_free (& serialization_order );
2877
2866
htable_free (& nullptrs );
2878
2867
htable_free (& symbol_table );
0 commit comments