Skip to content

Commit 3d48f59

Browse files
authored
Don't use sigatomic before current task is available (#58320)
1 parent 088bb90 commit 3d48f59

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/staticdata.c

-4
Original file line numberDiff line numberDiff line change
@@ -3593,8 +3593,6 @@ JL_DLLEXPORT jl_image_buf_t jl_preload_sysimg(const char *fname)
35933593
jl_errorf("System image file \"%s\" not found.", fname);
35943594
ios_bufmode(&f, bm_none);
35953595

3596-
JL_SIGATOMIC_BEGIN();
3597-
35983596
ios_seek_end(&f);
35993597
size_t len = ios_pos(&f);
36003598
char *sysimg = (char*)jl_gc_perm_alloc(len, 0, 64, 0);
@@ -3605,8 +3603,6 @@ JL_DLLEXPORT jl_image_buf_t jl_preload_sysimg(const char *fname)
36053603

36063604
ios_close(&f);
36073605

3608-
JL_SIGATOMIC_END();
3609-
36103606
jl_sysimage_buf = (jl_image_buf_t) {
36113607
.kind = JL_IMAGE_KIND_JI,
36123608
.pointers = NULL,

0 commit comments

Comments
 (0)