@@ -907,6 +907,7 @@ static void jl_insert_into_serialization_queue(jl_serializer_state *s, jl_value_
907
907
int is_relocatable = !s -> incremental || jl_is_code_info (inferred ) ||
908
908
(jl_is_string (inferred ) && jl_string_len (inferred ) > 0 && jl_string_data (inferred )[jl_string_len (inferred ) - 1 ]);
909
909
if (!is_relocatable ) {
910
+ jl_ (mi );
910
911
inferred = jl_nothing ;
911
912
}
912
913
else if (def -> source == NULL ) {
@@ -3419,9 +3420,6 @@ static void jl_save_system_image_to_stream(ios_t *f, jl_array_t *mod_array,
3419
3420
3420
3421
static void jl_write_header_for_incremental (ios_t * f , jl_array_t * worklist , jl_array_t * mod_array , jl_array_t * * udeps , int64_t * srctextpos , int64_t * checksumpos )
3421
3422
{
3422
- assert (jl_precompile_toplevel_module == NULL );
3423
- jl_precompile_toplevel_module = (jl_module_t * )jl_array_ptr_ref (worklist , jl_array_len (worklist )- 1 );
3424
-
3425
3423
* checksumpos = write_header (f , 0 );
3426
3424
write_uint8 (f , jl_cache_flags ());
3427
3425
// write description of contents (name, uuid, buildid)
@@ -3479,9 +3477,7 @@ JL_DLLEXPORT void jl_create_system_image(void **_native_data, jl_array_t *workli
3479
3477
// Generate _native_data`
3480
3478
if (_native_data != NULL ) {
3481
3479
jl_prepare_serialization_data (mod_array , newly_inferred , & extext_methods , & new_ext_cis , NULL , & query_cache );
3482
- jl_precompile_toplevel_module = (jl_module_t * )jl_array_ptr_ref (worklist , jl_array_len (worklist )- 1 );
3483
3480
* _native_data = jl_precompile_worklist (worklist , extext_methods , new_ext_cis );
3484
- jl_precompile_toplevel_module = NULL ;
3485
3481
extext_methods = NULL ;
3486
3482
new_ext_cis = NULL ;
3487
3483
}
@@ -3528,7 +3524,6 @@ JL_DLLEXPORT void jl_create_system_image(void **_native_data, jl_array_t *workli
3528
3524
// Re-enable running julia code for postoutput hooks, atexit, etc.
3529
3525
jl_gc_enable_finalizers (ct , 1 );
3530
3526
ct -> reentrant_timing &= ~0b1000u ;
3531
- jl_precompile_toplevel_module = NULL ;
3532
3527
3533
3528
if (worklist ) {
3534
3529
// Go back and update the checksum in the header
0 commit comments