Skip to content

Commit

Permalink
kernel: when using julia_gc, call jl_atexit_hook in SyExit
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Oct 19, 2018
1 parent 32fc058 commit 9ab46d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#include "hpc/misc.h"
#endif

#ifdef USE_JULIA_GC
#include "julia.h"
#endif

#include <assert.h>
#include <fcntl.h>
#include <stdarg.h>
Expand Down Expand Up @@ -547,7 +551,10 @@ void SyUSleep ( UInt msecs )
void SyExit (
UInt ret )
{
exit( (int)ret );
#ifdef USE_JULIA_GC
jl_atexit_hook(ret);
#endif
exit( (int)ret );
}


Expand Down

0 comments on commit 9ab46d8

Please sign in to comment.