Skip to content

Commit

Permalink
fixup! signal handling: User-defined interrupt handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsamaroo committed Aug 4, 2023
1 parent 4f71767 commit 4013d97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/jl_exported_funcs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
XX(jl_running_on_valgrind) \
XX(jl_safe_printf) \
XX(jl_SC_CLK_TCK) \
XX(jl_schedule_interrupt_handler) \
XX(jl_set_ARGS) \
XX(jl_set_const) \
XX(jl_set_errno) \
Expand Down
3 changes: 3 additions & 0 deletions src/julia_threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,13 @@ JL_DLLEXPORT void jl_gc_run_pending_finalizers(struct _jl_task_t *ct);
extern JL_DLLEXPORT _Atomic(int) jl_gc_have_pending_finalizers;
JL_DLLEXPORT int8_t jl_gc_is_in_finalizer(void);

JL_DLLEXPORT int jl_wake_thread(int16_t tid);
JL_DLLEXPORT void jl_wakeup_thread(int16_t tid);

JL_DLLEXPORT void jl_schedule_task(struct _jl_task_t *task);

JL_DLLEXPORT void jl_schedule_interrupt_handler(void);

#ifdef __cplusplus
}
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,6 @@ JL_NO_ASAN static void ctx_switch(jl_task_t *lastt)
sanitizer_finish_switch_fiber(ptls->previous_task, jl_atomic_load_relaxed(&ptls->current_task));
}

JL_DLLIMPORT void jl_schedule_interrupt_handler(void);

JL_DLLEXPORT void jl_switch(void) JL_NOTSAFEPOINT_LEAVE JL_NOTSAFEPOINT_ENTER
{
jl_schedule_interrupt_handler();
Expand Down

0 comments on commit 4013d97

Please sign in to comment.