Skip to content

Commit

Permalink
analyzegc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed May 6, 2024
1 parent 8bb6036 commit 9230640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/julia_threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern "C" {
#endif


JL_DLLEXPORT int16_t jl_threadid(void);
JL_DLLEXPORT int16_t jl_threadid(void) JL_NOTSAFEPOINT;
JL_DLLEXPORT int8_t jl_threadpoolid(int16_t tid) JL_NOTSAFEPOINT;

// JULIA_ENABLE_THREADING may be controlled by altering JULIA_THREADS in Make.user
Expand Down
2 changes: 1 addition & 1 deletion src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static uv_cond_t cond;
void jl_init_thread_scheduler(jl_ptls_t ptls) JL_NOTSAFEPOINT;

// return calling thread's ID
JL_DLLEXPORT int16_t jl_threadid(void)
JL_DLLEXPORT int16_t jl_threadid(void) JL_NOTSAFEPOINT
{
return jl_atomic_load_relaxed(&jl_current_task->tid);
}
Expand Down

0 comments on commit 9230640

Please sign in to comment.