-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel: when using julia_gc, call jl_atexit_hook in SyExit #2931
Conversation
The changes to Panic/SyExit are sensible and good. One random question -- why doesn't julia_gc just pass jl_atexit_hook to atexit? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks sensible
src/saveload.c
Outdated
@@ -374,8 +374,7 @@ static void LoadBagData ( void ) | |||
|
|||
if (TNAM_TNUM(type) == NULL) | |||
{ | |||
Pr("Bad type %d, size %d\n",type,size); | |||
exit(1); | |||
Panic("Bad type %d, size %d\n",type,size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compiler seems to complain about the %d
@ChrisJefferson fair question, I also wondered. One thing is that |
7674fed
to
9ab46d8
Compare
Wanting the exit code is a good enough reason, in that case I'm happy to merge it (it's not going to effect GAP without Julia anyway of course) |
Backported via 19aafe0 |
... as recommended by https://docs.julialang.org/en/v1/manual/embedding/index.html
This makes it possible to collect coverage data in Julia code (as that is written to disk via that atexit hook).